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

Side by Side Diff: src/accessors.cc

Issue 1169103004: [deoptimizer] Basic support inlining based on SharedFunctionInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Jaros comment. Created 5 years, 6 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
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/contexts.h" 9 #include "src/contexts.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 1119
1120 TranslatedState translated_values(frame); 1120 TranslatedState translated_values(frame);
1121 translated_values.Prepare(false, frame->fp()); 1121 translated_values.Prepare(false, frame->fp());
1122 1122
1123 int argument_count = 0; 1123 int argument_count = 0;
1124 TranslatedFrame* translated_frame = 1124 TranslatedFrame* translated_frame =
1125 translated_values.GetArgumentsInfoFromJSFrameIndex(inlined_frame_index, 1125 translated_values.GetArgumentsInfoFromJSFrameIndex(inlined_frame_index,
1126 &argument_count); 1126 &argument_count);
1127 TranslatedFrame::iterator iter = translated_frame->begin(); 1127 TranslatedFrame::iterator iter = translated_frame->begin();
1128 1128
1129 // Skip the function.
1130 iter++;
1131
1129 // Skip the receiver. 1132 // Skip the receiver.
1130 iter++; 1133 iter++;
1131 argument_count--; 1134 argument_count--;
1132 1135
1133 Handle<JSObject> arguments = 1136 Handle<JSObject> arguments =
1134 factory->NewArgumentsObject(inlined_function, argument_count); 1137 factory->NewArgumentsObject(inlined_function, argument_count);
1135 Handle<FixedArray> array = factory->NewFixedArray(argument_count); 1138 Handle<FixedArray> array = factory->NewFixedArray(argument_count);
1136 bool should_deoptimize = false; 1139 bool should_deoptimize = false;
1137 for (int i = 0; i < argument_count; ++i) { 1140 for (int i = 0; i < argument_count; ++i) {
1138 // If we materialize any object, we should deopt because we might alias 1141 // If we materialize any object, we should deopt because we might alias
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1488 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport); 1491 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport);
1489 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport); 1492 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport);
1490 info->set_getter(*getter); 1493 info->set_getter(*getter);
1491 if (!(attributes & ReadOnly)) info->set_setter(*setter); 1494 if (!(attributes & ReadOnly)) info->set_setter(*setter);
1492 return info; 1495 return info;
1493 } 1496 }
1494 1497
1495 1498
1496 } // namespace internal 1499 } // namespace internal
1497 } // namespace v8 1500 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698