| 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 // Ignore the return value. | 516 // Ignore the return value. |
| 517 } | 517 } |
| 518 CheckStack(); | 518 CheckStack(); |
| 519 | 519 |
| 520 // Compile the body of the function in a vanilla state. Don't | 520 // Compile the body of the function in a vanilla state. Don't |
| 521 // bother compiling all the code if the scope has an illegal | 521 // bother compiling all the code if the scope has an illegal |
| 522 // redeclaration. | 522 // redeclaration. |
| 523 if (!scope()->HasIllegalRedeclaration()) { | 523 if (!scope()->HasIllegalRedeclaration()) { |
| 524 Comment cmnt(masm_, "[ function body"); | 524 Comment cmnt(masm_, "[ function body"); |
| 525 #ifdef DEBUG | 525 #ifdef DEBUG |
| 526 bool is_builtin = Bootstrapper::IsActive(); | 526 bool is_builtin = Isolate::Current()->bootstrapper()->IsActive(); |
| 527 bool should_trace = | 527 bool should_trace = |
| 528 is_builtin ? FLAG_trace_builtin_calls : FLAG_trace_calls; | 528 is_builtin ? FLAG_trace_builtin_calls : FLAG_trace_calls; |
| 529 if (should_trace) { | 529 if (should_trace) { |
| 530 frame_->CallRuntime(Runtime::kDebugTrace, 0); | 530 frame_->CallRuntime(Runtime::kDebugTrace, 0); |
| 531 // Ignore the return value. | 531 // Ignore the return value. |
| 532 } | 532 } |
| 533 #endif | 533 #endif |
| 534 VisitStatements(info->function()->body()); | 534 VisitStatements(info->function()->body()); |
| 535 | 535 |
| 536 // Handle the return from the function. | 536 // Handle the return from the function. |
| (...skipping 11417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11954 } | 11954 } |
| 11955 | 11955 |
| 11956 #endif | 11956 #endif |
| 11957 | 11957 |
| 11958 | 11958 |
| 11959 #undef __ | 11959 #undef __ |
| 11960 | 11960 |
| 11961 } } // namespace v8::internal | 11961 } } // namespace v8::internal |
| 11962 | 11962 |
| 11963 #endif // V8_TARGET_ARCH_X64 | 11963 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |