OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 Object* CompileCallDebugPrepareStepIn(Code::Flags flags); | 362 Object* CompileCallDebugPrepareStepIn(Code::Flags flags); |
363 #endif | 363 #endif |
364 Object* CompileLazyCompile(Code::Flags flags); | 364 Object* CompileLazyCompile(Code::Flags flags); |
365 | 365 |
366 // Static functions for generating parts of stubs. | 366 // Static functions for generating parts of stubs. |
367 static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm, | 367 static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm, |
368 int index, | 368 int index, |
369 Register prototype); | 369 Register prototype); |
370 | 370 |
371 // Generates prototype loading code that uses the objects from the | 371 // Generates prototype loading code that uses the objects from the |
372 // context we were in when this function was called. This ties the | 372 // context we were in when this function was called. If the context |
373 // generated code to a particular context and so must not be used in | 373 // has changed, a jump to miss is performed. This ties the generated |
374 // cases where the generated code is not allowed to have references | 374 // code to a particular context and so must not be used in cases |
375 // to objects from a context. | 375 // where the generated code is not allowed to have references to |
| 376 // objects from a context. |
376 static void GenerateDirectLoadGlobalFunctionPrototype(MacroAssembler* masm, | 377 static void GenerateDirectLoadGlobalFunctionPrototype(MacroAssembler* masm, |
377 int index, | 378 int index, |
378 Register prototype); | 379 Register prototype, |
| 380 Label* miss); |
379 | 381 |
380 static void GenerateFastPropertyLoad(MacroAssembler* masm, | 382 static void GenerateFastPropertyLoad(MacroAssembler* masm, |
381 Register dst, Register src, | 383 Register dst, Register src, |
382 JSObject* holder, int index); | 384 JSObject* holder, int index); |
383 | 385 |
384 static void GenerateLoadArrayLength(MacroAssembler* masm, | 386 static void GenerateLoadArrayLength(MacroAssembler* masm, |
385 Register receiver, | 387 Register receiver, |
386 Register scratch, | 388 Register scratch, |
387 Label* miss_label); | 389 Label* miss_label); |
388 | 390 |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 | 749 |
748 JSFunction* constant_function_; | 750 JSFunction* constant_function_; |
749 bool is_simple_api_call_; | 751 bool is_simple_api_call_; |
750 FunctionTemplateInfo* expected_receiver_type_; | 752 FunctionTemplateInfo* expected_receiver_type_; |
751 CallHandlerInfo* api_call_info_; | 753 CallHandlerInfo* api_call_info_; |
752 }; | 754 }; |
753 | 755 |
754 } } // namespace v8::internal | 756 } } // namespace v8::internal |
755 | 757 |
756 #endif // V8_STUB_CACHE_H_ | 758 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |