Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 483d1e378d49307d84cf1be57a66de7c82fc1da0..3f947ca78758cf31dcee9a0cbce6eb8c8667d00d 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -436,12 +436,26 @@ void FullCodeGenerator::PopulateTypeFeedbackCells(Handle<Code> code) { |
} |
- |
void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { |
PrepareForBailoutForId(node->id(), state); |
} |
+void FullCodeGenerator::CallLoadIC(ContextualMode mode, TypeFeedbackId id) { |
+ Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode); |
+ CallIC(ic, mode, id); |
+} |
+ |
+ |
+void FullCodeGenerator::CallStoreIC(ContextualMode mode, TypeFeedbackId id) { |
+ Handle<Code> ic = StoreIC::initialize_stub( |
+ isolate(), |
+ is_classic_mode() ? kNonStrictMode : kStrictMode, |
Toon Verwaest
2013/12/04 18:10:52
What about adding a strict_mode() helper?
mvstanton
2013/12/04 22:08:10
Done.
|
+ mode); |
+ CallIC(ic, mode, id); |
+} |
+ |
+ |
void FullCodeGenerator::RecordJSReturnSite(Call* call) { |
// We record the offset of the function return so we can rebuild the frame |
// if the function was inlined, i.e., this is the return address in the |