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

Side by Side Diff: src/x64/full-codegen-x64.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/parser.cc ('k') | no next file » | 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698