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