Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 6691058: Restart AST node numbering when we enter a function. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporate codereview suggestions. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | src/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698