| 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 // Ignore the return value. | 329 // Ignore the return value. |
| 330 } | 330 } |
| 331 CheckStack(); | 331 CheckStack(); |
| 332 | 332 |
| 333 // Compile the body of the function in a vanilla state. Don't | 333 // Compile the body of the function in a vanilla state. Don't |
| 334 // bother compiling all the code if the scope has an illegal | 334 // bother compiling all the code if the scope has an illegal |
| 335 // redeclaration. | 335 // redeclaration. |
| 336 if (!scope()->HasIllegalRedeclaration()) { | 336 if (!scope()->HasIllegalRedeclaration()) { |
| 337 Comment cmnt(masm_, "[ function body"); | 337 Comment cmnt(masm_, "[ function body"); |
| 338 #ifdef DEBUG | 338 #ifdef DEBUG |
| 339 bool is_builtin = Bootstrapper::IsActive(); | 339 bool is_builtin = Isolate::Current()->bootstrapper()->IsActive(); |
| 340 bool should_trace = | 340 bool should_trace = |
| 341 is_builtin ? FLAG_trace_builtin_calls : FLAG_trace_calls; | 341 is_builtin ? FLAG_trace_builtin_calls : FLAG_trace_calls; |
| 342 if (should_trace) { | 342 if (should_trace) { |
| 343 frame_->CallRuntime(Runtime::kDebugTrace, 0); | 343 frame_->CallRuntime(Runtime::kDebugTrace, 0); |
| 344 // Ignore the return value. | 344 // Ignore the return value. |
| 345 } | 345 } |
| 346 #endif | 346 #endif |
| 347 VisitStatements(info->function()->body()); | 347 VisitStatements(info->function()->body()); |
| 348 | 348 |
| 349 // Handle the return from the function. | 349 // Handle the return from the function. |
| (...skipping 13372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13722 masm.GetCode(&desc); | 13722 masm.GetCode(&desc); |
| 13723 // Call the function from C++. | 13723 // Call the function from C++. |
| 13724 return FUNCTION_CAST<MemCopyFunction>(buffer); | 13724 return FUNCTION_CAST<MemCopyFunction>(buffer); |
| 13725 } | 13725 } |
| 13726 | 13726 |
| 13727 #undef __ | 13727 #undef __ |
| 13728 | 13728 |
| 13729 } } // namespace v8::internal | 13729 } } // namespace v8::internal |
| 13730 | 13730 |
| 13731 #endif // V8_TARGET_ARCH_IA32 | 13731 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |