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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 { Comment cmnt(masm_, "[ Declarations"); | 224 { Comment cmnt(masm_, "[ Declarations"); |
225 // For named function expressions, declare the function name as a | 225 // For named function expressions, declare the function name as a |
226 // constant. | 226 // constant. |
227 if (scope()->is_function_scope() && scope()->function() != NULL) { | 227 if (scope()->is_function_scope() && scope()->function() != NULL) { |
228 EmitDeclaration(scope()->function(), Variable::CONST, NULL); | 228 EmitDeclaration(scope()->function(), Variable::CONST, NULL); |
229 } | 229 } |
230 VisitDeclarations(scope()->declarations()); | 230 VisitDeclarations(scope()->declarations()); |
231 } | 231 } |
232 | 232 |
233 { Comment cmnt(masm_, "[ Stack check"); | 233 { Comment cmnt(masm_, "[ Stack check"); |
234 PrepareForBailout(info->function(), NO_REGISTERS); | 234 PrepareForBailoutForId(AstNode::kFunctionEntryId, NO_REGISTERS); |
235 NearLabel ok; | 235 NearLabel ok; |
236 ExternalReference stack_limit = | 236 ExternalReference stack_limit = |
237 ExternalReference::address_of_stack_limit(isolate()); | 237 ExternalReference::address_of_stack_limit(isolate()); |
238 __ cmp(esp, Operand::StaticVariable(stack_limit)); | 238 __ cmp(esp, Operand::StaticVariable(stack_limit)); |
239 __ j(above_equal, &ok, taken); | 239 __ j(above_equal, &ok, taken); |
240 StackCheckStub stub; | 240 StackCheckStub stub; |
241 __ CallStub(&stub); | 241 __ CallStub(&stub); |
242 __ bind(&ok); | 242 __ bind(&ok); |
243 } | 243 } |
244 | 244 |
(...skipping 4103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4348 // And return. | 4348 // And return. |
4349 __ ret(0); | 4349 __ ret(0); |
4350 } | 4350 } |
4351 | 4351 |
4352 | 4352 |
4353 #undef __ | 4353 #undef __ |
4354 | 4354 |
4355 } } // namespace v8::internal | 4355 } } // namespace v8::internal |
4356 | 4356 |
4357 #endif // V8_TARGET_ARCH_IA32 | 4357 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |