OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 void StoreToSlot(Slot* slot, InitState init_state); | 302 void StoreToSlot(Slot* slot, InitState init_state); |
303 | 303 |
304 struct InlineRuntimeLUT { | 304 struct InlineRuntimeLUT { |
305 void (CodeGenerator::*method)(ZoneList<Expression*>*); | 305 void (CodeGenerator::*method)(ZoneList<Expression*>*); |
306 const char* name; | 306 const char* name; |
307 int nargs; | 307 int nargs; |
308 }; | 308 }; |
309 | 309 |
310 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); | 310 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); |
311 bool CheckForInlineRuntimeCall(CallRuntime* node); | 311 bool CheckForInlineRuntimeCall(CallRuntime* node); |
312 static bool PatchInlineRuntimeEntry(Handle<String> name, | |
313 const InlineRuntimeLUT& new_entry, | |
314 InlineRuntimeLUT* old_entry); | |
315 | 312 |
316 static Handle<Code> ComputeLazyCompile(int argc); | 313 static Handle<Code> ComputeLazyCompile(int argc); |
317 void ProcessDeclarations(ZoneList<Declaration*>* declarations); | 314 void ProcessDeclarations(ZoneList<Declaration*>* declarations); |
318 | 315 |
319 Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); | 316 Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); |
320 | 317 |
321 // Declare global variables and functions in the given array of | 318 // Declare global variables and functions in the given array of |
322 // name/value pairs. | 319 // name/value pairs. |
323 void DeclareGlobals(Handle<FixedArray> pairs); | 320 void DeclareGlobals(Handle<FixedArray> pairs); |
324 | 321 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 friend class FullCodeGenerator; | 422 friend class FullCodeGenerator; |
426 friend class FullCodeGenSyntaxChecker; | 423 friend class FullCodeGenSyntaxChecker; |
427 | 424 |
428 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 425 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
429 }; | 426 }; |
430 | 427 |
431 | 428 |
432 } } // namespace v8::internal | 429 } } // namespace v8::internal |
433 | 430 |
434 #endif // V8_MIPS_CODEGEN_MIPS_H_ | 431 #endif // V8_MIPS_CODEGEN_MIPS_H_ |
OLD | NEW |