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

Unified Diff: src/full-codegen.cc

Issue 96083005: Remove Reloc::Mode CODE_TARGET_CONTEXT (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Moved load and store ics out of builtins. Created 7 years 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
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

Powered by Google App Engine
This is Rietveld 408576698