| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 ProcessDeclarations(scope_->declarations()); | 240 ProcessDeclarations(scope_->declarations()); |
| 241 // Bail out if a stack-overflow exception occurred when processing | 241 // Bail out if a stack-overflow exception occurred when processing |
| 242 // declarations. | 242 // declarations. |
| 243 if (HasStackOverflow()) return; | 243 if (HasStackOverflow()) return; |
| 244 } | 244 } |
| 245 | 245 |
| 246 if (FLAG_trace) { | 246 if (FLAG_trace) { |
| 247 frame_->CallRuntime(Runtime::kTraceEnter, 0); | 247 frame_->CallRuntime(Runtime::kTraceEnter, 0); |
| 248 // Ignore the return value. | 248 // Ignore the return value. |
| 249 } | 249 } |
| 250 frame_->SpillAll(); | |
| 251 CheckStack(); | 250 CheckStack(); |
| 252 | 251 |
| 253 // Compile the body of the function in a vanilla state. Don't | 252 // Compile the body of the function in a vanilla state. Don't |
| 254 // bother compiling all the code if the scope has an illegal | 253 // bother compiling all the code if the scope has an illegal |
| 255 // redeclaration. | 254 // redeclaration. |
| 256 if (!scope_->HasIllegalRedeclaration()) { | 255 if (!scope_->HasIllegalRedeclaration()) { |
| 257 Comment cmnt(masm_, "[ function body"); | 256 Comment cmnt(masm_, "[ function body"); |
| 258 #ifdef DEBUG | 257 #ifdef DEBUG |
| 259 bool is_builtin = Bootstrapper::IsActive(); | 258 bool is_builtin = Bootstrapper::IsActive(); |
| 260 bool should_trace = | 259 bool should_trace = |
| (...skipping 5227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5488 | 5487 |
| 5489 // Slow-case: Go through the JavaScript implementation. | 5488 // Slow-case: Go through the JavaScript implementation. |
| 5490 __ bind(&slow); | 5489 __ bind(&slow); |
| 5491 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); | 5490 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); |
| 5492 } | 5491 } |
| 5493 | 5492 |
| 5494 | 5493 |
| 5495 #undef __ | 5494 #undef __ |
| 5496 | 5495 |
| 5497 } } // namespace v8::internal | 5496 } } // namespace v8::internal |
| OLD | NEW |