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

Unified Diff: src/compiler/js-typed-lowering.cc

Issue 1406113007: Merge GlobalObject with JSGlobalObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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-native-context-specialization.cc ('k') | src/contexts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-typed-lowering.cc
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc
index 0d83d2baf1949a94def00b654b5abd74e10bcc47..d89af74e0832145c1719e0ad08121981523fc3bb 100644
--- a/src/compiler/js-typed-lowering.cc
+++ b/src/compiler/js-typed-lowering.cc
@@ -1251,7 +1251,7 @@ Reduction JSTypedLowering::ReduceJSConvertReceiver(Node* node) {
context, context, effect);
receiver = effect =
graph()->NewNode(simplified()->LoadField(
- AccessBuilder::ForGlobalObjectGlobalProxy()),
+ AccessBuilder::ForJSGlobalObjectGlobalProxy()),
global_object, effect, control);
}
} else if (!receiver_type->Maybe(Type::NullOrUndefined()) ||
@@ -1304,10 +1304,10 @@ Reduction JSTypedLowering::ReduceJSConvertReceiver(Node* node) {
Node* global_object = eglobal = graph()->NewNode(
javascript()->LoadContext(0, Context::GLOBAL_OBJECT_INDEX, true),
context, context, eglobal);
- rglobal = eglobal =
- graph()->NewNode(simplified()->LoadField(
- AccessBuilder::ForGlobalObjectGlobalProxy()),
- global_object, eglobal, if_global);
+ rglobal = eglobal = graph()->NewNode(
+ simplified()->LoadField(
+ AccessBuilder::ForJSGlobalObjectGlobalProxy()),
+ global_object, eglobal, if_global);
}
}
@@ -1397,9 +1397,10 @@ Reduction JSTypedLowering::ReduceJSCreateArguments(Node* node) {
simplified()->LoadField(
AccessBuilder::ForContextSlot(Context::GLOBAL_OBJECT_INDEX)),
context, effect, control);
- Node* const load_native_context = graph()->NewNode(
- simplified()->LoadField(AccessBuilder::ForGlobalObjectNativeContext()),
- load_global_object, effect, control);
+ Node* const load_native_context =
+ graph()->NewNode(simplified()->LoadField(
+ AccessBuilder::ForJSGlobalObjectNativeContext()),
+ load_global_object, effect, control);
Node* const load_arguments_map = graph()->NewNode(
simplified()->LoadField(AccessBuilder::ForContextSlot(
has_aliased_arguments ? Context::FAST_ALIASED_ARGUMENTS_MAP_INDEX
@@ -1439,9 +1440,10 @@ Reduction JSTypedLowering::ReduceJSCreateArguments(Node* node) {
simplified()->LoadField(
AccessBuilder::ForContextSlot(Context::GLOBAL_OBJECT_INDEX)),
context, effect, control);
- Node* const load_native_context = graph()->NewNode(
- simplified()->LoadField(AccessBuilder::ForGlobalObjectNativeContext()),
- load_global_object, effect, control);
+ Node* const load_native_context =
+ graph()->NewNode(simplified()->LoadField(
+ AccessBuilder::ForJSGlobalObjectNativeContext()),
+ load_global_object, effect, control);
Node* const load_arguments_map = graph()->NewNode(
simplified()->LoadField(
AccessBuilder::ForContextSlot(Context::STRICT_ARGUMENTS_MAP_INDEX)),
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698