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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 __ CallRuntime(Runtime::kTraceEnter, 0); | 251 __ CallRuntime(Runtime::kTraceEnter, 0); |
252 } | 252 } |
253 | 253 |
254 // Visit the declarations and body unless there is an illegal | 254 // Visit the declarations and body unless there is an illegal |
255 // redeclaration. | 255 // redeclaration. |
256 if (scope()->HasIllegalRedeclaration()) { | 256 if (scope()->HasIllegalRedeclaration()) { |
257 Comment cmnt(masm_, "[ Declarations"); | 257 Comment cmnt(masm_, "[ Declarations"); |
258 scope()->VisitIllegalRedeclaration(this); | 258 scope()->VisitIllegalRedeclaration(this); |
259 | 259 |
260 } else { | 260 } else { |
| 261 PrepareForBailoutForId(AstNode::kFunctionEntryId, NO_REGISTERS); |
261 { Comment cmnt(masm_, "[ Declarations"); | 262 { Comment cmnt(masm_, "[ Declarations"); |
262 // For named function expressions, declare the function name as a | 263 // For named function expressions, declare the function name as a |
263 // constant. | 264 // constant. |
264 if (scope()->is_function_scope() && scope()->function() != NULL) { | 265 if (scope()->is_function_scope() && scope()->function() != NULL) { |
265 EmitDeclaration(scope()->function(), Variable::CONST, NULL); | 266 EmitDeclaration(scope()->function(), Variable::CONST, NULL); |
266 } | 267 } |
267 VisitDeclarations(scope()->declarations()); | 268 VisitDeclarations(scope()->declarations()); |
268 } | 269 } |
269 | 270 |
270 { Comment cmnt(masm_, "[ Stack check"); | 271 { Comment cmnt(masm_, "[ Stack check"); |
271 PrepareForBailoutForId(AstNode::kFunctionEntryId, NO_REGISTERS); | 272 PrepareForBailoutForId(AstNode::kDeclarationsId, NO_REGISTERS); |
272 Label ok; | 273 Label ok; |
273 __ LoadRoot(ip, Heap::kStackLimitRootIndex); | 274 __ LoadRoot(ip, Heap::kStackLimitRootIndex); |
274 __ cmp(sp, Operand(ip)); | 275 __ cmp(sp, Operand(ip)); |
275 __ b(hs, &ok); | 276 __ b(hs, &ok); |
276 StackCheckStub stub; | 277 StackCheckStub stub; |
277 __ CallStub(&stub); | 278 __ CallStub(&stub); |
278 __ bind(&ok); | 279 __ bind(&ok); |
279 } | 280 } |
280 | 281 |
281 { Comment cmnt(masm_, "[ Body"); | 282 { Comment cmnt(masm_, "[ Body"); |
(...skipping 3916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4198 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 4199 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
4199 __ add(pc, r1, Operand(masm_->CodeObject())); | 4200 __ add(pc, r1, Operand(masm_->CodeObject())); |
4200 } | 4201 } |
4201 | 4202 |
4202 | 4203 |
4203 #undef __ | 4204 #undef __ |
4204 | 4205 |
4205 } } // namespace v8::internal | 4206 } } // namespace v8::internal |
4206 | 4207 |
4207 #endif // V8_TARGET_ARCH_ARM | 4208 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |