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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/js-operator.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen.h
diff --git a/src/full-codegen.h b/src/full-codegen.h
index 8c2835a86dfe5820b958087c266e4cfa7460617c..57283bbaae7783d92206c67a76ea37c1101eb07f 100644
--- a/src/full-codegen.h
+++ b/src/full-codegen.h
@@ -432,7 +432,10 @@ class FullCodeGenerator: public AstVisitor {
Handle<FixedArray> FeedbackVector() {
return info_->feedback_vector();
}
- void EnsureSlotContainsAllocationSite(int slot);
+ void EnsureSlotContainsAllocationSite(FeedbackVectorSlot slot);
+ Smi* SmiFromSlot(FeedbackVectorSlot slot) const {
+ return Smi::FromInt(slot.ToInt());
+ }
// Record a call's return site offset, used to rebuild the frame if the
// called function was inlined at the site.
« 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