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

Side by Side Diff: src/hydrogen.h

Issue 6647019: Reuse backing store of two zone lists by using Rewind(0) instead of Clear(). (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 HEnvironment* CopyForInlining(Handle<JSFunction> target, 372 HEnvironment* CopyForInlining(Handle<JSFunction> target,
373 FunctionLiteral* function, 373 FunctionLiteral* function,
374 bool is_speculative, 374 bool is_speculative,
375 HConstant* undefined) const; 375 HConstant* undefined) const;
376 376
377 void AddIncomingEdge(HBasicBlock* block, HEnvironment* other); 377 void AddIncomingEdge(HBasicBlock* block, HEnvironment* other);
378 378
379 void ClearHistory() { 379 void ClearHistory() {
380 pop_count_ = 0; 380 pop_count_ = 0;
381 push_count_ = 0; 381 push_count_ = 0;
382 assigned_variables_.Clear(); 382 assigned_variables_.Rewind(0);
383 } 383 }
384 384
385 void SetValueAt(int index, HValue* value) { 385 void SetValueAt(int index, HValue* value) {
386 ASSERT(index < length()); 386 ASSERT(index < length());
387 values_[index] = value; 387 values_[index] = value;
388 } 388 }
389 389
390 void PrintTo(StringStream* stream); 390 void PrintTo(StringStream* stream);
391 void PrintToStd(); 391 void PrintToStd();
392 392
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 const char* filename_; 1091 const char* filename_;
1092 HeapStringAllocator string_allocator_; 1092 HeapStringAllocator string_allocator_;
1093 StringStream trace_; 1093 StringStream trace_;
1094 int indent_; 1094 int indent_;
1095 }; 1095 };
1096 1096
1097 1097
1098 } } // namespace v8::internal 1098 } } // namespace v8::internal
1099 1099
1100 #endif // V8_HYDROGEN_H_ 1100 #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