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 | |
| 30 | #include "codegen-inl.h" |
| 31 | #include "compiler.h" |
| 32 | #include "debug.h" |
| 33 | #include "full-codegen.h" |
| 34 | #include "parser.h" |
| 35 | |
| 36 | namespace v8 { |
| 37 | namespace internal { |
| 38 | |
| 39 | #define __ ACCESS_MASM(masm_) |
| 40 | |
| 41 | void FullCodeGenerator::Generate(CompilationInfo* info, Mode mode) { |
| 42 | UNIMPLEMENTED_MIPS(); |
| 43 | } |
| 44 | |
| 45 | |
| 46 | void FullCodeGenerator::EmitReturnSequence(int position) { |
| 47 | UNIMPLEMENTED_MIPS(); |
| 48 | } |
| 49 | |
| 50 | |
| 51 | void FullCodeGenerator::Apply(Expression::Context context, Register reg) { |
| 52 | UNIMPLEMENTED_MIPS(); |
| 53 | } |
| 54 | |
| 55 | |
| 56 | void FullCodeGenerator::Apply(Expression::Context context, Slot* slot) { |
| 57 | UNIMPLEMENTED_MIPS(); |
| 58 | } |
| 59 | |
| 60 | void FullCodeGenerator::Apply(Expression::Context context, Literal* lit) { |
| 61 | UNIMPLEMENTED_MIPS(); |
| 62 | } |
| 63 | |
| 64 | |
| 65 | void FullCodeGenerator::ApplyTOS(Expression::Context context) { |
| 66 | UNIMPLEMENTED_MIPS(); |
| 67 | } |
| 68 | |
| 69 | |
| 70 | void FullCodeGenerator::DropAndApply(int count, |
| 71 | Expression::Context context, |
| 72 | Register reg) { |
| 73 | UNIMPLEMENTED_MIPS(); |
| 74 | } |
| 75 | |
| 76 | |
| 77 | void FullCodeGenerator::Apply(Expression::Context context, |
| 78 | Label* materialize_true, |
| 79 | Label* materialize_false) { |
| 80 | UNIMPLEMENTED_MIPS(); |
| 81 | } |
| 82 | |
| 83 | |
| 84 | void FullCodeGenerator::DoTest(Expression::Context context) { |
| 85 | UNIMPLEMENTED_MIPS(); |
| 86 | } |
| 87 | |
| 88 | |
| 89 | MemOperand FullCodeGenerator::EmitSlotSearch(Slot* slot, Register scratch) { |
| 90 | UNIMPLEMENTED_MIPS(); |
| 91 | return MemOperand(zero_reg, 0); // UNIMPLEMENTED RETURN |
| 92 | } |
| 93 | |
| 94 | |
| 95 | void FullCodeGenerator::Move(Register destination, Slot* source) { |
| 96 | UNIMPLEMENTED_MIPS(); |
| 97 | } |
| 98 | |
| 99 | |
| 100 | void FullCodeGenerator::Move(Slot* dst, |
| 101 | Register src, |
| 102 | Register scratch1, |
| 103 | Register scratch2) { |
| 104 | UNIMPLEMENTED_MIPS(); |
| 105 | } |
| 106 | |
| 107 | |
| 108 | void FullCodeGenerator::VisitDeclaration(Declaration* decl) { |
| 109 | UNIMPLEMENTED_MIPS(); |
| 110 | } |
| 111 | |
| 112 | |
| 113 | void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |
| 114 | UNIMPLEMENTED_MIPS(); |
| 115 | } |
| 116 | |
| 117 | |
| 118 | void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { |
| 119 | UNIMPLEMENTED_MIPS(); |
| 120 | } |
| 121 | |
| 122 | |
| 123 | void FullCodeGenerator::VisitVariableProxy(VariableProxy* expr) { |
| 124 | UNIMPLEMENTED_MIPS(); |
| 125 | } |
| 126 | |
| 127 | |
| 128 | void FullCodeGenerator::EmitVariableLoad(Variable* var, |
| 129 | Expression::Context context) { |
| 130 | UNIMPLEMENTED_MIPS(); |
| 131 | } |
| 132 | |
| 133 | |
| 134 | void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { |
| 135 | UNIMPLEMENTED_MIPS(); |
| 136 | } |
| 137 | |
| 138 | |
| 139 | void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
| 140 | UNIMPLEMENTED_MIPS(); |
| 141 | } |
| 142 | |
| 143 | |
| 144 | void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
| 145 | UNIMPLEMENTED_MIPS(); |
| 146 | } |
| 147 | |
| 148 | |
ager@chromium.org | ce5e87b | 2010-03-10 10:24:18 +0000 | [diff] [blame^] | 149 | void FullCodeGenerator::VisitAssignment(Assignment* expr) { |
| 150 | UNIMPLEMENTED_MIPS(); |
| 151 | } |
| 152 | |
| 153 | |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 154 | void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { |
| 155 | UNIMPLEMENTED_MIPS(); |
| 156 | } |
| 157 | |
| 158 | |
| 159 | void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) { |
| 160 | UNIMPLEMENTED_MIPS(); |
| 161 | } |
| 162 | |
| 163 | |
| 164 | void FullCodeGenerator::EmitBinaryOp(Token::Value op, |
| 165 | Expression::Context context) { |
| 166 | UNIMPLEMENTED_MIPS(); |
| 167 | } |
| 168 | |
| 169 | |
| 170 | void FullCodeGenerator::EmitVariableAssignment(Variable* var, |
| 171 | Expression::Context context) { |
| 172 | UNIMPLEMENTED_MIPS(); |
| 173 | } |
| 174 | |
| 175 | |
| 176 | void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { |
| 177 | UNIMPLEMENTED_MIPS(); |
| 178 | } |
| 179 | |
| 180 | |
| 181 | void FullCodeGenerator::EmitKeyedPropertyAssignment(Assignment* expr) { |
| 182 | UNIMPLEMENTED_MIPS(); |
| 183 | } |
| 184 | |
| 185 | |
| 186 | void FullCodeGenerator::VisitProperty(Property* expr) { |
| 187 | UNIMPLEMENTED_MIPS(); |
| 188 | } |
| 189 | |
| 190 | void FullCodeGenerator::EmitCallWithIC(Call* expr, |
| 191 | Handle<Object> ignored, |
| 192 | RelocInfo::Mode mode) { |
| 193 | UNIMPLEMENTED_MIPS(); |
| 194 | } |
| 195 | |
| 196 | |
| 197 | void FullCodeGenerator::EmitCallWithStub(Call* expr) { |
| 198 | UNIMPLEMENTED_MIPS(); |
| 199 | } |
| 200 | |
| 201 | |
| 202 | void FullCodeGenerator::VisitCall(Call* expr) { |
| 203 | UNIMPLEMENTED_MIPS(); |
| 204 | } |
| 205 | |
| 206 | |
| 207 | void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
| 208 | UNIMPLEMENTED_MIPS(); |
| 209 | } |
| 210 | |
| 211 | |
| 212 | void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
| 213 | UNIMPLEMENTED_MIPS(); |
| 214 | } |
| 215 | |
| 216 | |
| 217 | void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
| 218 | UNIMPLEMENTED_MIPS(); |
| 219 | } |
| 220 | |
| 221 | |
| 222 | void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
| 223 | UNIMPLEMENTED_MIPS(); |
| 224 | } |
| 225 | |
| 226 | |
| 227 | void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { |
| 228 | UNIMPLEMENTED_MIPS(); |
| 229 | } |
| 230 | |
| 231 | |
| 232 | void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { |
| 233 | UNIMPLEMENTED_MIPS(); |
| 234 | } |
| 235 | |
| 236 | |
| 237 | void FullCodeGenerator::VisitThisFunction(ThisFunction* expr) { |
| 238 | UNIMPLEMENTED_MIPS(); |
| 239 | } |
| 240 | |
| 241 | |
| 242 | Register FullCodeGenerator::result_register() { return v0; } |
| 243 | |
| 244 | |
| 245 | Register FullCodeGenerator::context_register() { return cp; } |
| 246 | |
| 247 | |
| 248 | void FullCodeGenerator::StoreToFrameField(int frame_offset, Register value) { |
| 249 | UNIMPLEMENTED_MIPS(); |
| 250 | } |
| 251 | |
| 252 | |
| 253 | void FullCodeGenerator::LoadContextField(Register dst, int context_index) { |
| 254 | UNIMPLEMENTED_MIPS(); |
| 255 | } |
| 256 | |
| 257 | |
| 258 | // ---------------------------------------------------------------------------- |
| 259 | // Non-local control flow support. |
| 260 | |
| 261 | void FullCodeGenerator::EnterFinallyBlock() { |
| 262 | UNIMPLEMENTED_MIPS(); |
| 263 | } |
| 264 | |
| 265 | |
| 266 | void FullCodeGenerator::ExitFinallyBlock() { |
| 267 | UNIMPLEMENTED_MIPS(); |
| 268 | } |
| 269 | |
| 270 | |
| 271 | #undef __ |
| 272 | |
| 273 | } } // namespace v8::internal |