| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 __ CallRuntime(Runtime::kTraceEnter, 0); | 259 __ CallRuntime(Runtime::kTraceEnter, 0); |
| 260 } | 260 } |
| 261 | 261 |
| 262 // Visit the declarations and body unless there is an illegal | 262 // Visit the declarations and body unless there is an illegal |
| 263 // redeclaration. | 263 // redeclaration. |
| 264 if (scope()->HasIllegalRedeclaration()) { | 264 if (scope()->HasIllegalRedeclaration()) { |
| 265 Comment cmnt(masm_, "[ Declarations"); | 265 Comment cmnt(masm_, "[ Declarations"); |
| 266 scope()->VisitIllegalRedeclaration(this); | 266 scope()->VisitIllegalRedeclaration(this); |
| 267 | 267 |
| 268 } else { | 268 } else { |
| 269 PrepareForBailoutForId(AstNode::kFunctionEntryId, NO_REGISTERS); |
| 269 { Comment cmnt(masm_, "[ Declarations"); | 270 { Comment cmnt(masm_, "[ Declarations"); |
| 270 // For named function expressions, declare the function name as a | 271 // For named function expressions, declare the function name as a |
| 271 // constant. | 272 // constant. |
| 272 if (scope()->is_function_scope() && scope()->function() != NULL) { | 273 if (scope()->is_function_scope() && scope()->function() != NULL) { |
| 273 EmitDeclaration(scope()->function(), Variable::CONST, NULL); | 274 EmitDeclaration(scope()->function(), Variable::CONST, NULL); |
| 274 } | 275 } |
| 275 VisitDeclarations(scope()->declarations()); | 276 VisitDeclarations(scope()->declarations()); |
| 276 } | 277 } |
| 277 | 278 |
| 278 { Comment cmnt(masm_, "[ Stack check"); | 279 { Comment cmnt(masm_, "[ Stack check"); |
| 279 PrepareForBailoutForId(AstNode::kFunctionEntryId, NO_REGISTERS); | 280 PrepareForBailoutForId(AstNode::kDeclarationsId, NO_REGISTERS); |
| 280 Label ok; | 281 Label ok; |
| 281 __ LoadRoot(t0, Heap::kStackLimitRootIndex); | 282 __ LoadRoot(t0, Heap::kStackLimitRootIndex); |
| 282 __ Branch(&ok, hs, sp, Operand(t0)); | 283 __ Branch(&ok, hs, sp, Operand(t0)); |
| 283 StackCheckStub stub; | 284 StackCheckStub stub; |
| 284 __ CallStub(&stub); | 285 __ CallStub(&stub); |
| 285 __ bind(&ok); | 286 __ bind(&ok); |
| 286 } | 287 } |
| 287 | 288 |
| 288 { Comment cmnt(masm_, "[ Body"); | 289 { Comment cmnt(masm_, "[ Body"); |
| 289 ASSERT(loop_depth() == 0); | 290 ASSERT(loop_depth() == 0); |
| (...skipping 3928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4218 __ Addu(at, a1, Operand(masm_->CodeObject())); | 4219 __ Addu(at, a1, Operand(masm_->CodeObject())); |
| 4219 __ Jump(at); | 4220 __ Jump(at); |
| 4220 } | 4221 } |
| 4221 | 4222 |
| 4222 | 4223 |
| 4223 #undef __ | 4224 #undef __ |
| 4224 | 4225 |
| 4225 } } // namespace v8::internal | 4226 } } // namespace v8::internal |
| 4226 | 4227 |
| 4227 #endif // V8_TARGET_ARCH_MIPS | 4228 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |