| 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 Object* CompileCallDebugBreak(Code::Flags flags); | 354 Object* CompileCallDebugBreak(Code::Flags flags); |
| 355 Object* CompileCallDebugPrepareStepIn(Code::Flags flags); | 355 Object* CompileCallDebugPrepareStepIn(Code::Flags flags); |
| 356 #endif | 356 #endif |
| 357 | 357 |
| 358 // Static functions for generating parts of stubs. | 358 // Static functions for generating parts of stubs. |
| 359 static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm, | 359 static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm, |
| 360 int index, | 360 int index, |
| 361 Register prototype); | 361 Register prototype); |
| 362 | 362 |
| 363 // Generates prototype loading code that uses the objects from the | 363 // Generates prototype loading code that uses the objects from the |
| 364 // context we were in when this function was called. This ties the | 364 // context we were in when this function was called. If the context |
| 365 // generated code to a particular context and so must not be used in | 365 // has changed, a jump to miss is performed. This ties the generated |
| 366 // cases where the generated code is not allowed to have references | 366 // code to a particular context and so must not be used in cases |
| 367 // to objects from a context. | 367 // where the generated code is not allowed to have references to |
| 368 // objects from a context. |
| 368 static void GenerateDirectLoadGlobalFunctionPrototype(MacroAssembler* masm, | 369 static void GenerateDirectLoadGlobalFunctionPrototype(MacroAssembler* masm, |
| 369 int index, | 370 int index, |
| 370 Register prototype); | 371 Register prototype, |
| 372 Label* miss); |
| 371 | 373 |
| 372 static void GenerateFastPropertyLoad(MacroAssembler* masm, | 374 static void GenerateFastPropertyLoad(MacroAssembler* masm, |
| 373 Register dst, Register src, | 375 Register dst, Register src, |
| 374 JSObject* holder, int index); | 376 JSObject* holder, int index); |
| 375 | 377 |
| 376 static void GenerateLoadArrayLength(MacroAssembler* masm, | 378 static void GenerateLoadArrayLength(MacroAssembler* masm, |
| 377 Register receiver, | 379 Register receiver, |
| 378 Register scratch, | 380 Register scratch, |
| 379 Label* miss_label); | 381 Label* miss_label); |
| 380 | 382 |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 | 743 |
| 742 JSFunction* constant_function_; | 744 JSFunction* constant_function_; |
| 743 bool is_simple_api_call_; | 745 bool is_simple_api_call_; |
| 744 FunctionTemplateInfo* expected_receiver_type_; | 746 FunctionTemplateInfo* expected_receiver_type_; |
| 745 CallHandlerInfo* api_call_info_; | 747 CallHandlerInfo* api_call_info_; |
| 746 }; | 748 }; |
| 747 | 749 |
| 748 } } // namespace v8::internal | 750 } } // namespace v8::internal |
| 749 | 751 |
| 750 #endif // V8_STUB_CACHE_H_ | 752 #endif // V8_STUB_CACHE_H_ |
| OLD | NEW |