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-ia32.h for its layout. | 116 // frames-ia32.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). ecx is zero for method calls and non-zero for | 135 // receiver object). ecx is zero for method calls and non-zero for |
(...skipping 4407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4545 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), esi); | 4543 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), esi); |
4546 } | 4544 } |
4547 __ PopTryHandler(); | 4545 __ PopTryHandler(); |
4548 __ call(finally_entry_); | 4546 __ call(finally_entry_); |
4549 | 4547 |
4550 *stack_depth = 0; | 4548 *stack_depth = 0; |
4551 *context_length = 0; | 4549 *context_length = 0; |
4552 return previous_; | 4550 return previous_; |
4553 } | 4551 } |
4554 | 4552 |
| 4553 |
4555 #undef __ | 4554 #undef __ |
4556 | 4555 |
4557 } } // namespace v8::internal | 4556 } } // namespace v8::internal |
4558 | 4557 |
4559 #endif // V8_TARGET_ARCH_IA32 | 4558 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |