ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 1 | // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 | // Redistribution and use in source and binary forms, with or without |
| 3 | // modification, are permitted provided that the following conditions are |
| 4 | // met: |
| 5 | // |
| 6 | // * Redistributions of source code must retain the above copyright |
| 7 | // notice, this list of conditions and the following disclaimer. |
| 8 | // * Redistributions in binary form must reproduce the above |
| 9 | // copyright notice, this list of conditions and the following |
| 10 | // disclaimer in the documentation and/or other materials provided |
| 11 | // with the distribution. |
| 12 | // * Neither the name of Google Inc. nor the names of its |
| 13 | // contributors may be used to endorse or promote products derived |
| 14 | // from this software without specific prior written permission. |
| 15 | // |
| 16 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 17 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 20 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 21 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | |
| 28 | #include "v8.h" |
| 29 | |
erik.corry@gmail.com | 9dfbea4 | 2010-05-21 12:58:28 +0000 | [diff] [blame] | 30 | #if defined(V8_TARGET_ARCH_MIPS) |
| 31 | |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 32 | #include "codegen-inl.h" |
| 33 | #include "compiler.h" |
| 34 | #include "debug.h" |
| 35 | #include "full-codegen.h" |
| 36 | #include "parser.h" |
| 37 | |
| 38 | namespace v8 { |
| 39 | namespace internal { |
| 40 | |
| 41 | #define __ ACCESS_MASM(masm_) |
| 42 | |
| 43 | void FullCodeGenerator::Generate(CompilationInfo* info, Mode mode) { |
| 44 | UNIMPLEMENTED_MIPS(); |
| 45 | } |
| 46 | |
| 47 | |
ager@chromium.org | 2cc82ae | 2010-06-14 07:35:38 +0000 | [diff] [blame^] | 48 | void FullCodeGenerator::EmitReturnSequence() { |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 49 | UNIMPLEMENTED_MIPS(); |
| 50 | } |
| 51 | |
| 52 | |
| 53 | void FullCodeGenerator::Apply(Expression::Context context, Register reg) { |
| 54 | UNIMPLEMENTED_MIPS(); |
| 55 | } |
| 56 | |
| 57 | |
| 58 | void FullCodeGenerator::Apply(Expression::Context context, Slot* slot) { |
| 59 | UNIMPLEMENTED_MIPS(); |
| 60 | } |
| 61 | |
| 62 | void FullCodeGenerator::Apply(Expression::Context context, Literal* lit) { |
| 63 | UNIMPLEMENTED_MIPS(); |
| 64 | } |
| 65 | |
| 66 | |
| 67 | void FullCodeGenerator::ApplyTOS(Expression::Context context) { |
| 68 | UNIMPLEMENTED_MIPS(); |
| 69 | } |
| 70 | |
| 71 | |
| 72 | void FullCodeGenerator::DropAndApply(int count, |
| 73 | Expression::Context context, |
| 74 | Register reg) { |
| 75 | UNIMPLEMENTED_MIPS(); |
| 76 | } |
| 77 | |
| 78 | |
| 79 | void FullCodeGenerator::Apply(Expression::Context context, |
| 80 | Label* materialize_true, |
| 81 | Label* materialize_false) { |
| 82 | UNIMPLEMENTED_MIPS(); |
| 83 | } |
| 84 | |
| 85 | |
| 86 | void FullCodeGenerator::DoTest(Expression::Context context) { |
| 87 | UNIMPLEMENTED_MIPS(); |
| 88 | } |
| 89 | |
| 90 | |
| 91 | MemOperand FullCodeGenerator::EmitSlotSearch(Slot* slot, Register scratch) { |
| 92 | UNIMPLEMENTED_MIPS(); |
| 93 | return MemOperand(zero_reg, 0); // UNIMPLEMENTED RETURN |
| 94 | } |
| 95 | |
| 96 | |
| 97 | void FullCodeGenerator::Move(Register destination, Slot* source) { |
| 98 | UNIMPLEMENTED_MIPS(); |
| 99 | } |
| 100 | |
| 101 | |
| 102 | void FullCodeGenerator::Move(Slot* dst, |
| 103 | Register src, |
| 104 | Register scratch1, |
| 105 | Register scratch2) { |
| 106 | UNIMPLEMENTED_MIPS(); |
| 107 | } |
| 108 | |
| 109 | |
| 110 | void FullCodeGenerator::VisitDeclaration(Declaration* decl) { |
| 111 | UNIMPLEMENTED_MIPS(); |
| 112 | } |
| 113 | |
| 114 | |
| 115 | void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |
| 116 | UNIMPLEMENTED_MIPS(); |
| 117 | } |
| 118 | |
| 119 | |
| 120 | void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { |
| 121 | UNIMPLEMENTED_MIPS(); |
| 122 | } |
| 123 | |
| 124 | |
| 125 | void FullCodeGenerator::VisitVariableProxy(VariableProxy* expr) { |
| 126 | UNIMPLEMENTED_MIPS(); |
| 127 | } |
| 128 | |
| 129 | |
| 130 | void FullCodeGenerator::EmitVariableLoad(Variable* var, |
| 131 | Expression::Context context) { |
| 132 | UNIMPLEMENTED_MIPS(); |
| 133 | } |
| 134 | |
| 135 | |
| 136 | void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { |
| 137 | UNIMPLEMENTED_MIPS(); |
| 138 | } |
| 139 | |
| 140 | |
| 141 | void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
| 142 | UNIMPLEMENTED_MIPS(); |
| 143 | } |
| 144 | |
| 145 | |
| 146 | void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
| 147 | UNIMPLEMENTED_MIPS(); |
| 148 | } |
| 149 | |
| 150 | |
ager@chromium.org | ce5e87b | 2010-03-10 10:24:18 +0000 | [diff] [blame] | 151 | void FullCodeGenerator::VisitAssignment(Assignment* expr) { |
| 152 | UNIMPLEMENTED_MIPS(); |
| 153 | } |
| 154 | |
| 155 | |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 156 | void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { |
| 157 | UNIMPLEMENTED_MIPS(); |
| 158 | } |
| 159 | |
| 160 | |
| 161 | void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) { |
| 162 | UNIMPLEMENTED_MIPS(); |
| 163 | } |
| 164 | |
| 165 | |
| 166 | void FullCodeGenerator::EmitBinaryOp(Token::Value op, |
| 167 | Expression::Context context) { |
| 168 | UNIMPLEMENTED_MIPS(); |
| 169 | } |
| 170 | |
| 171 | |
| 172 | void FullCodeGenerator::EmitVariableAssignment(Variable* var, |
| 173 | Expression::Context context) { |
| 174 | UNIMPLEMENTED_MIPS(); |
| 175 | } |
| 176 | |
| 177 | |
| 178 | void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { |
| 179 | UNIMPLEMENTED_MIPS(); |
| 180 | } |
| 181 | |
| 182 | |
| 183 | void FullCodeGenerator::EmitKeyedPropertyAssignment(Assignment* expr) { |
| 184 | UNIMPLEMENTED_MIPS(); |
| 185 | } |
| 186 | |
| 187 | |
| 188 | void FullCodeGenerator::VisitProperty(Property* expr) { |
| 189 | UNIMPLEMENTED_MIPS(); |
| 190 | } |
| 191 | |
| 192 | void FullCodeGenerator::EmitCallWithIC(Call* expr, |
| 193 | Handle<Object> ignored, |
| 194 | RelocInfo::Mode mode) { |
| 195 | UNIMPLEMENTED_MIPS(); |
| 196 | } |
| 197 | |
| 198 | |
| 199 | void FullCodeGenerator::EmitCallWithStub(Call* expr) { |
| 200 | UNIMPLEMENTED_MIPS(); |
| 201 | } |
| 202 | |
| 203 | |
| 204 | void FullCodeGenerator::VisitCall(Call* expr) { |
| 205 | UNIMPLEMENTED_MIPS(); |
| 206 | } |
| 207 | |
| 208 | |
| 209 | void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
| 210 | UNIMPLEMENTED_MIPS(); |
| 211 | } |
| 212 | |
| 213 | |
| 214 | void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
| 215 | UNIMPLEMENTED_MIPS(); |
| 216 | } |
| 217 | |
| 218 | |
| 219 | void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
| 220 | UNIMPLEMENTED_MIPS(); |
| 221 | } |
| 222 | |
| 223 | |
| 224 | void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
| 225 | UNIMPLEMENTED_MIPS(); |
| 226 | } |
| 227 | |
| 228 | |
| 229 | void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { |
| 230 | UNIMPLEMENTED_MIPS(); |
| 231 | } |
| 232 | |
| 233 | |
| 234 | void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { |
| 235 | UNIMPLEMENTED_MIPS(); |
| 236 | } |
| 237 | |
| 238 | |
| 239 | void FullCodeGenerator::VisitThisFunction(ThisFunction* expr) { |
| 240 | UNIMPLEMENTED_MIPS(); |
| 241 | } |
| 242 | |
| 243 | |
| 244 | Register FullCodeGenerator::result_register() { return v0; } |
| 245 | |
| 246 | |
| 247 | Register FullCodeGenerator::context_register() { return cp; } |
| 248 | |
| 249 | |
| 250 | void FullCodeGenerator::StoreToFrameField(int frame_offset, Register value) { |
| 251 | UNIMPLEMENTED_MIPS(); |
| 252 | } |
| 253 | |
| 254 | |
| 255 | void FullCodeGenerator::LoadContextField(Register dst, int context_index) { |
| 256 | UNIMPLEMENTED_MIPS(); |
| 257 | } |
| 258 | |
| 259 | |
| 260 | // ---------------------------------------------------------------------------- |
| 261 | // Non-local control flow support. |
| 262 | |
| 263 | void FullCodeGenerator::EnterFinallyBlock() { |
| 264 | UNIMPLEMENTED_MIPS(); |
| 265 | } |
| 266 | |
| 267 | |
| 268 | void FullCodeGenerator::ExitFinallyBlock() { |
| 269 | UNIMPLEMENTED_MIPS(); |
| 270 | } |
| 271 | |
| 272 | |
| 273 | #undef __ |
| 274 | |
| 275 | } } // namespace v8::internal |
erik.corry@gmail.com | 9dfbea4 | 2010-05-21 12:58:28 +0000 | [diff] [blame] | 276 | |
| 277 | #endif // V8_TARGET_ARCH_MIPS |