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

Side by Side Diff: src/arm/full-codegen-arm.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 | « no previous file | src/ast.h » ('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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698