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

Side by Side Diff: src/hydrogen.h

Issue 9692046: Always create HArgumentsObject on function entry. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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/hydrogen.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 HConstant* GetConstant1(); 286 HConstant* GetConstant1();
287 HConstant* GetConstantMinus1(); 287 HConstant* GetConstantMinus1();
288 HConstant* GetConstantTrue(); 288 HConstant* GetConstantTrue();
289 HConstant* GetConstantFalse(); 289 HConstant* GetConstantFalse();
290 HConstant* GetConstantHole(); 290 HConstant* GetConstantHole();
291 291
292 HBasicBlock* CreateBasicBlock(); 292 HBasicBlock* CreateBasicBlock();
293 HArgumentsObject* GetArgumentsObject() const { 293 HArgumentsObject* GetArgumentsObject() const {
294 return arguments_object_.get(); 294 return arguments_object_.get();
295 } 295 }
296 bool HasArgumentsObject() const { return arguments_object_.is_set(); }
297 296
298 void SetArgumentsObject(HArgumentsObject* object) { 297 void SetArgumentsObject(HArgumentsObject* object) {
299 arguments_object_.set(object); 298 arguments_object_.set(object);
300 } 299 }
301 300
302 int GetMaximumValueID() const { return values_.length(); } 301 int GetMaximumValueID() const { return values_.length(); }
303 int GetNextBlockID() { return next_block_id_++; } 302 int GetNextBlockID() { return next_block_id_++; }
304 int GetNextValueID(HValue* value) { 303 int GetNextValueID(HValue* value) {
305 values_.Add(value); 304 values_.Add(value);
306 return values_.length() - 1; 305 return values_.length() - 1;
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 const char* filename_; 1340 const char* filename_;
1342 HeapStringAllocator string_allocator_; 1341 HeapStringAllocator string_allocator_;
1343 StringStream trace_; 1342 StringStream trace_;
1344 int indent_; 1343 int indent_;
1345 }; 1344 };
1346 1345
1347 1346
1348 } } // namespace v8::internal 1347 } } // namespace v8::internal
1349 1348
1350 #endif // V8_HYDROGEN_H_ 1349 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698