| 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 { Comment cmnt(masm_, "[ Declarations"); | 238 { Comment cmnt(masm_, "[ Declarations"); |
| 239 // For named function expressions, declare the function name as a | 239 // For named function expressions, declare the function name as a |
| 240 // constant. | 240 // constant. |
| 241 if (scope()->is_function_scope() && scope()->function() != NULL) { | 241 if (scope()->is_function_scope() && scope()->function() != NULL) { |
| 242 EmitDeclaration(scope()->function(), Variable::CONST, NULL); | 242 EmitDeclaration(scope()->function(), Variable::CONST, NULL); |
| 243 } | 243 } |
| 244 VisitDeclarations(scope()->declarations()); | 244 VisitDeclarations(scope()->declarations()); |
| 245 } | 245 } |
| 246 | 246 |
| 247 { Comment cmnt(masm_, "[ Stack check"); | 247 { Comment cmnt(masm_, "[ Stack check"); |
| 248 PrepareForBailout(info->function(), NO_REGISTERS); | 248 PrepareForBailoutForId(AstNode::kFunctionEntryId, NO_REGISTERS); |
| 249 Label ok; | 249 Label ok; |
| 250 __ LoadRoot(ip, Heap::kStackLimitRootIndex); | 250 __ LoadRoot(ip, Heap::kStackLimitRootIndex); |
| 251 __ cmp(sp, Operand(ip)); | 251 __ cmp(sp, Operand(ip)); |
| 252 __ b(hs, &ok); | 252 __ b(hs, &ok); |
| 253 StackCheckStub stub; | 253 StackCheckStub stub; |
| 254 __ CallStub(&stub); | 254 __ CallStub(&stub); |
| 255 __ bind(&ok); | 255 __ bind(&ok); |
| 256 } | 256 } |
| 257 | 257 |
| 258 { Comment cmnt(masm_, "[ Body"); | 258 { Comment cmnt(masm_, "[ Body"); |
| (...skipping 4106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4365 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 4365 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
| 4366 __ add(pc, r1, Operand(masm_->CodeObject())); | 4366 __ add(pc, r1, Operand(masm_->CodeObject())); |
| 4367 } | 4367 } |
| 4368 | 4368 |
| 4369 | 4369 |
| 4370 #undef __ | 4370 #undef __ |
| 4371 | 4371 |
| 4372 } } // namespace v8::internal | 4372 } } // namespace v8::internal |
| 4373 | 4373 |
| 4374 #endif // V8_TARGET_ARCH_ARM | 4374 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |