| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // frames-x64.h for its layout. | 116 // frames-x64.h for its layout. |
| 117 void FullCodeGenerator::Generate() { | 117 void FullCodeGenerator::Generate() { |
| 118 CompilationInfo* info = info_; | 118 CompilationInfo* info = info_; |
| 119 handler_table_ = | 119 handler_table_ = |
| 120 isolate()->factory()->NewFixedArray(function()->handler_count(), TENURED); | 120 isolate()->factory()->NewFixedArray(function()->handler_count(), TENURED); |
| 121 profiling_counter_ = isolate()->factory()->NewJSGlobalPropertyCell( | 121 profiling_counter_ = isolate()->factory()->NewJSGlobalPropertyCell( |
| 122 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget))); | 122 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget))); |
| 123 SetFunctionPosition(function()); | 123 SetFunctionPosition(function()); |
| 124 Comment cmnt(masm_, "[ function compiled by full code generator"); | 124 Comment cmnt(masm_, "[ function compiled by full code generator"); |
| 125 | 125 |
| 126 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | |
| 127 | |
| 128 #ifdef DEBUG | 126 #ifdef DEBUG |
| 129 if (strlen(FLAG_stop_at) > 0 && | 127 if (strlen(FLAG_stop_at) > 0 && |
| 130 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { | 128 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { |
| 131 __ int3(); | 129 __ int3(); |
| 132 } | 130 } |
| 133 #endif | 131 #endif |
| 134 | 132 |
| 135 // Strict mode functions and builtins need to replace the receiver | 133 // Strict mode functions and builtins need to replace the receiver |
| 136 // with undefined when called as functions (without an explicit | 134 // with undefined when called as functions (without an explicit |
| 137 // receiver object). rcx is zero for method calls and non-zero for | 135 // receiver object). rcx is zero for method calls and non-zero for |
| (...skipping 4407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4545 *context_length = 0; | 4543 *context_length = 0; |
| 4546 return previous_; | 4544 return previous_; |
| 4547 } | 4545 } |
| 4548 | 4546 |
| 4549 | 4547 |
| 4550 #undef __ | 4548 #undef __ |
| 4551 | 4549 |
| 4552 } } // namespace v8::internal | 4550 } } // namespace v8::internal |
| 4553 | 4551 |
| 4554 #endif // V8_TARGET_ARCH_X64 | 4552 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |