| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 { Comment cmnt(masm_, "[ Declarations"); | 225 { Comment cmnt(masm_, "[ Declarations"); |
| 226 // For named function expressions, declare the function name as a | 226 // For named function expressions, declare the function name as a |
| 227 // constant. | 227 // constant. |
| 228 if (scope()->is_function_scope() && scope()->function() != NULL) { | 228 if (scope()->is_function_scope() && scope()->function() != NULL) { |
| 229 EmitDeclaration(scope()->function(), Variable::CONST, NULL); | 229 EmitDeclaration(scope()->function(), Variable::CONST, NULL); |
| 230 } | 230 } |
| 231 VisitDeclarations(scope()->declarations()); | 231 VisitDeclarations(scope()->declarations()); |
| 232 } | 232 } |
| 233 | 233 |
| 234 { Comment cmnt(masm_, "[ Stack check"); | 234 { Comment cmnt(masm_, "[ Stack check"); |
| 235 PrepareForBailout(info->function(), NO_REGISTERS); | 235 PrepareForBailoutForId(AstNode::kFunctionEntryId, NO_REGISTERS); |
| 236 NearLabel ok; | 236 NearLabel ok; |
| 237 __ CompareRoot(rsp, Heap::kStackLimitRootIndex); | 237 __ CompareRoot(rsp, Heap::kStackLimitRootIndex); |
| 238 __ j(above_equal, &ok); | 238 __ j(above_equal, &ok); |
| 239 StackCheckStub stub; | 239 StackCheckStub stub; |
| 240 __ CallStub(&stub); | 240 __ CallStub(&stub); |
| 241 __ bind(&ok); | 241 __ bind(&ok); |
| 242 } | 242 } |
| 243 | 243 |
| 244 { Comment cmnt(masm_, "[ Body"); | 244 { Comment cmnt(masm_, "[ Body"); |
| 245 ASSERT(loop_depth() == 0); | 245 ASSERT(loop_depth() == 0); |
| (...skipping 4084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4330 __ ret(0); | 4330 __ ret(0); |
| 4331 } | 4331 } |
| 4332 | 4332 |
| 4333 | 4333 |
| 4334 #undef __ | 4334 #undef __ |
| 4335 | 4335 |
| 4336 | 4336 |
| 4337 } } // namespace v8::internal | 4337 } } // namespace v8::internal |
| 4338 | 4338 |
| 4339 #endif // V8_TARGET_ARCH_X64 | 4339 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |