| 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 | |
| 139 #ifdef DEBUG | 137 #ifdef DEBUG |
| 140 if (strlen(FLAG_stop_at) > 0 && | 138 if (strlen(FLAG_stop_at) > 0 && |
| 141 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { | 139 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { |
| 142 __ stop("stop-at"); | 140 __ stop("stop-at"); |
| 143 } | 141 } |
| 144 #endif | 142 #endif |
| 145 | 143 |
| 146 // Strict mode functions and builtins need to replace the receiver | 144 // Strict mode functions and builtins need to replace the receiver |
| 147 // with undefined when called as functions (without an explicit | 145 // with undefined when called as functions (without an explicit |
| 148 // receiver object). r5 is zero for method calls and non-zero for | 146 // 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... |
| 4579 *context_length = 0; | 4577 *context_length = 0; |
| 4580 return previous_; | 4578 return previous_; |
| 4581 } | 4579 } |
| 4582 | 4580 |
| 4583 | 4581 |
| 4584 #undef __ | 4582 #undef __ |
| 4585 | 4583 |
| 4586 } } // namespace v8::internal | 4584 } } // namespace v8::internal |
| 4587 | 4585 |
| 4588 #endif // V8_TARGET_ARCH_ARM | 4586 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |