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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 Object* CompileCallDebugBreak(Code::Flags flags); | 342 Object* CompileCallDebugBreak(Code::Flags flags); |
343 Object* CompileCallDebugPrepareStepIn(Code::Flags flags); | 343 Object* CompileCallDebugPrepareStepIn(Code::Flags flags); |
344 #endif | 344 #endif |
345 Object* CompileLazyCompile(Code::Flags flags); | 345 Object* CompileLazyCompile(Code::Flags flags); |
346 | 346 |
347 // Static functions for generating parts of stubs. | 347 // Static functions for generating parts of stubs. |
348 static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm, | 348 static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm, |
349 int index, | 349 int index, |
350 Register prototype); | 350 Register prototype); |
351 | 351 |
| 352 // Generates prototype loading code that uses the objects from the |
| 353 // context we were in when this function was called. This ties the |
| 354 // generated code to a particular context and so must not be used in |
| 355 // cases where the generated code is not allowed to have references |
| 356 // to objects from a context. |
| 357 static void GenerateDirectLoadGlobalFunctionPrototype(MacroAssembler* masm, |
| 358 int index, |
| 359 Register prototype); |
| 360 |
352 static void GenerateFastPropertyLoad(MacroAssembler* masm, | 361 static void GenerateFastPropertyLoad(MacroAssembler* masm, |
353 Register dst, Register src, | 362 Register dst, Register src, |
354 JSObject* holder, int index); | 363 JSObject* holder, int index); |
355 | 364 |
356 static void GenerateLoadArrayLength(MacroAssembler* masm, | 365 static void GenerateLoadArrayLength(MacroAssembler* masm, |
357 Register receiver, | 366 Register receiver, |
358 Register scratch, | 367 Register scratch, |
359 Label* miss_label); | 368 Label* miss_label); |
360 | 369 |
361 static void GenerateLoadStringLength(MacroAssembler* masm, | 370 static void GenerateLoadStringLength(MacroAssembler* masm, |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 | 701 |
693 JSFunction* constant_function_; | 702 JSFunction* constant_function_; |
694 bool is_simple_api_call_; | 703 bool is_simple_api_call_; |
695 FunctionTemplateInfo* expected_receiver_type_; | 704 FunctionTemplateInfo* expected_receiver_type_; |
696 CallHandlerInfo* api_call_info_; | 705 CallHandlerInfo* api_call_info_; |
697 }; | 706 }; |
698 | 707 |
699 } } // namespace v8::internal | 708 } } // namespace v8::internal |
700 | 709 |
701 #endif // V8_STUB_CACHE_H_ | 710 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |