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

Side by Side Diff: src/hydrogen-instructions.h

Issue 239333014: Don't clear map word when dominator and dominated HAllocate belong to the same basic block. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/hydrogen-instructions.cc » ('j') | src/hydrogen-instructions.cc » ('J')
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 5525 matching lines...) Expand 10 before | Expand all | Expand 10 after
5536 5536
5537 void CreateFreeSpaceFiller(int32_t filler_size); 5537 void CreateFreeSpaceFiller(int32_t filler_size);
5538 5538
5539 bool IsFoldable(HAllocate* allocate) { 5539 bool IsFoldable(HAllocate* allocate) {
5540 return (IsNewSpaceAllocation() && allocate->IsNewSpaceAllocation()) || 5540 return (IsNewSpaceAllocation() && allocate->IsNewSpaceAllocation()) ||
5541 (IsOldDataSpaceAllocation() && allocate->IsOldDataSpaceAllocation()) || 5541 (IsOldDataSpaceAllocation() && allocate->IsOldDataSpaceAllocation()) ||
5542 (IsOldPointerSpaceAllocation() && 5542 (IsOldPointerSpaceAllocation() &&
5543 allocate->IsOldPointerSpaceAllocation()); 5543 allocate->IsOldPointerSpaceAllocation());
5544 } 5544 }
5545 5545
5546 void ClearNextMapWord(int offset); 5546 void ClearNextMapWord(HAllocate* dominated, int offset);
5547 5547
5548 Flags flags_; 5548 Flags flags_;
5549 Handle<Map> known_initial_map_; 5549 Handle<Map> known_initial_map_;
5550 HAllocate* dominating_allocate_; 5550 HAllocate* dominating_allocate_;
5551 HStoreNamedField* filler_free_space_size_; 5551 HStoreNamedField* filler_free_space_size_;
5552 }; 5552 };
5553 5553
5554 5554
5555 class HStoreCodeEntry V8_FINAL: public HTemplateInstruction<2> { 5555 class HStoreCodeEntry V8_FINAL: public HTemplateInstruction<2> {
5556 public: 5556 public:
(...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after
7561 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7561 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7562 }; 7562 };
7563 7563
7564 7564
7565 #undef DECLARE_INSTRUCTION 7565 #undef DECLARE_INSTRUCTION
7566 #undef DECLARE_CONCRETE_INSTRUCTION 7566 #undef DECLARE_CONCRETE_INSTRUCTION
7567 7567
7568 } } // namespace v8::internal 7568 } } // namespace v8::internal
7569 7569
7570 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7570 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | src/hydrogen-instructions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698