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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // frames-arm.h for its layout. | 127 // frames-arm.h for its layout. |
128 void FullCodeGenerator::Generate() { | 128 void FullCodeGenerator::Generate() { |
129 CompilationInfo* info = info_; | 129 CompilationInfo* info = info_; |
130 handler_table_ = | 130 handler_table_ = |
131 isolate()->factory()->NewFixedArray(function()->handler_count(), TENURED); | 131 isolate()->factory()->NewFixedArray(function()->handler_count(), TENURED); |
132 profiling_counter_ = isolate()->factory()->NewJSGlobalPropertyCell( | 132 profiling_counter_ = isolate()->factory()->NewJSGlobalPropertyCell( |
133 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget))); | 133 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget))); |
134 SetFunctionPosition(function()); | 134 SetFunctionPosition(function()); |
135 Comment cmnt(masm_, "[ function compiled by full code generator"); | 135 Comment cmnt(masm_, "[ function compiled by full code generator"); |
136 | 136 |
| 137 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
| 138 |
137 #ifdef DEBUG | 139 #ifdef DEBUG |
138 if (strlen(FLAG_stop_at) > 0 && | 140 if (strlen(FLAG_stop_at) > 0 && |
139 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { | 141 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { |
140 __ stop("stop-at"); | 142 __ stop("stop-at"); |
141 } | 143 } |
142 #endif | 144 #endif |
143 | 145 |
144 // Strict mode functions and builtins need to replace the receiver | 146 // Strict mode functions and builtins need to replace the receiver |
145 // with undefined when called as functions (without an explicit | 147 // with undefined when called as functions (without an explicit |
146 // receiver object). r5 is zero for method calls and non-zero for | 148 // receiver object). r5 is zero for method calls and non-zero for |
(...skipping 4430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4577 *context_length = 0; | 4579 *context_length = 0; |
4578 return previous_; | 4580 return previous_; |
4579 } | 4581 } |
4580 | 4582 |
4581 | 4583 |
4582 #undef __ | 4584 #undef __ |
4583 | 4585 |
4584 } } // namespace v8::internal | 4586 } } // namespace v8::internal |
4585 | 4587 |
4586 #endif // V8_TARGET_ARCH_ARM | 4588 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |