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

Side by Side Diff: src/full-codegen.h

Issue 641373002: Introduce FeedbackVectorSlot type - better than int. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. Created 6 years, 2 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/compiler/js-operator.cc ('k') | src/full-codegen.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FULL_CODEGEN_H_ 5 #ifndef V8_FULL_CODEGEN_H_
6 #define V8_FULL_CODEGEN_H_ 6 #define V8_FULL_CODEGEN_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 425
426 // Bailout support. 426 // Bailout support.
427 void PrepareForBailout(Expression* node, State state); 427 void PrepareForBailout(Expression* node, State state);
428 void PrepareForBailoutForId(BailoutId id, State state); 428 void PrepareForBailoutForId(BailoutId id, State state);
429 429
430 // Feedback slot support. The feedback vector will be cleared during gc and 430 // Feedback slot support. The feedback vector will be cleared during gc and
431 // collected by the type-feedback oracle. 431 // collected by the type-feedback oracle.
432 Handle<FixedArray> FeedbackVector() { 432 Handle<FixedArray> FeedbackVector() {
433 return info_->feedback_vector(); 433 return info_->feedback_vector();
434 } 434 }
435 void EnsureSlotContainsAllocationSite(int slot); 435 void EnsureSlotContainsAllocationSite(FeedbackVectorSlot slot);
436 Smi* SmiFromSlot(FeedbackVectorSlot slot) const {
437 return Smi::FromInt(slot.ToInt());
438 }
436 439
437 // Record a call's return site offset, used to rebuild the frame if the 440 // Record a call's return site offset, used to rebuild the frame if the
438 // called function was inlined at the site. 441 // called function was inlined at the site.
439 void RecordJSReturnSite(Call* call); 442 void RecordJSReturnSite(Call* call);
440 443
441 // Prepare for bailout before a test (or compare) and branch. If 444 // Prepare for bailout before a test (or compare) and branch. If
442 // should_normalize, then the following comparison will not handle the 445 // should_normalize, then the following comparison will not handle the
443 // canonical JS true value so we will insert a (dead) test against true at 446 // canonical JS true value so we will insert a (dead) test against true at
444 // the actual bailout target from the optimized code. If not 447 // the actual bailout target from the optimized code. If not
445 // should_normalize, the true and false labels are ignored. 448 // should_normalize, the true and false labels are ignored.
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 983
981 Address start_; 984 Address start_;
982 Address instruction_start_; 985 Address instruction_start_;
983 uint32_t length_; 986 uint32_t length_;
984 }; 987 };
985 988
986 989
987 } } // namespace v8::internal 990 } } // namespace v8::internal
988 991
989 #endif // V8_FULL_CODEGEN_H_ 992 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/compiler/js-operator.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698