| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 frame_->CallRuntime(Runtime::kTraceEnter, 0); | 323 frame_->CallRuntime(Runtime::kTraceEnter, 0); |
| 324 // Ignore the return value. | 324 // Ignore the return value. |
| 325 } | 325 } |
| 326 | 326 |
| 327 // Compile the body of the function in a vanilla state. Don't | 327 // Compile the body of the function in a vanilla state. Don't |
| 328 // bother compiling all the code if the scope has an illegal | 328 // bother compiling all the code if the scope has an illegal |
| 329 // redeclaration. | 329 // redeclaration. |
| 330 if (!scope()->HasIllegalRedeclaration()) { | 330 if (!scope()->HasIllegalRedeclaration()) { |
| 331 Comment cmnt(masm_, "[ function body"); | 331 Comment cmnt(masm_, "[ function body"); |
| 332 #ifdef DEBUG | 332 #ifdef DEBUG |
| 333 bool is_builtin = Bootstrapper::IsActive(); | 333 bool is_builtin = Isolate::Current()->bootstrapper()->IsActive(); |
| 334 bool should_trace = | 334 bool should_trace = |
| 335 is_builtin ? FLAG_trace_builtin_calls : FLAG_trace_calls; | 335 is_builtin ? FLAG_trace_builtin_calls : FLAG_trace_calls; |
| 336 if (should_trace) { | 336 if (should_trace) { |
| 337 frame_->CallRuntime(Runtime::kDebugTrace, 0); | 337 frame_->CallRuntime(Runtime::kDebugTrace, 0); |
| 338 // Ignore the return value. | 338 // Ignore the return value. |
| 339 } | 339 } |
| 340 #endif | 340 #endif |
| 341 VisitStatements(info->function()->body()); | 341 VisitStatements(info->function()->body()); |
| 342 } | 342 } |
| 343 } | 343 } |
| (...skipping 10356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10700 __ bind(&string_add_runtime); | 10700 __ bind(&string_add_runtime); |
| 10701 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); | 10701 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); |
| 10702 } | 10702 } |
| 10703 | 10703 |
| 10704 | 10704 |
| 10705 #undef __ | 10705 #undef __ |
| 10706 | 10706 |
| 10707 } } // namespace v8::internal | 10707 } } // namespace v8::internal |
| 10708 | 10708 |
| 10709 #endif // V8_TARGET_ARCH_ARM | 10709 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |