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

Side by Side Diff: src/x87/lithium-codegen-x87.cc

Issue 1143003003: X87: [crankshaft] Record inlined shared function infos instead of closures. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/x87/lithium-x87.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 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 int result = deoptimization_literals_.length(); 1255 int result = deoptimization_literals_.length();
1256 for (int i = 0; i < deoptimization_literals_.length(); ++i) { 1256 for (int i = 0; i < deoptimization_literals_.length(); ++i) {
1257 if (deoptimization_literals_[i].is_identical_to(literal)) return i; 1257 if (deoptimization_literals_[i].is_identical_to(literal)) return i;
1258 } 1258 }
1259 deoptimization_literals_.Add(literal, zone()); 1259 deoptimization_literals_.Add(literal, zone());
1260 return result; 1260 return result;
1261 } 1261 }
1262 1262
1263 1263
1264 void LCodeGen::PopulateDeoptimizationLiteralsWithInlinedFunctions() { 1264 void LCodeGen::PopulateDeoptimizationLiteralsWithInlinedFunctions() {
1265 DCHECK(deoptimization_literals_.length() == 0); 1265 DCHECK_EQ(0, deoptimization_literals_.length());
1266 1266 for (auto function : chunk()->inlined_functions()) {
1267 const ZoneList<Handle<JSFunction> >* inlined_closures = 1267 DefineDeoptimizationLiteral(function);
1268 chunk()->inlined_closures();
1269
1270 for (int i = 0, length = inlined_closures->length();
1271 i < length;
1272 i++) {
1273 DefineDeoptimizationLiteral(inlined_closures->at(i));
1274 } 1268 }
1275
1276 inlined_function_count_ = deoptimization_literals_.length(); 1269 inlined_function_count_ = deoptimization_literals_.length();
1277 } 1270 }
1278 1271
1279 1272
1280 void LCodeGen::RecordSafepointWithLazyDeopt( 1273 void LCodeGen::RecordSafepointWithLazyDeopt(
1281 LInstruction* instr, SafepointMode safepoint_mode) { 1274 LInstruction* instr, SafepointMode safepoint_mode) {
1282 if (safepoint_mode == RECORD_SIMPLE_SAFEPOINT) { 1275 if (safepoint_mode == RECORD_SIMPLE_SAFEPOINT) {
1283 RecordSafepoint(instr->pointer_map(), Safepoint::kLazyDeopt); 1276 RecordSafepoint(instr->pointer_map(), Safepoint::kLazyDeopt);
1284 } else { 1277 } else {
1285 DCHECK(safepoint_mode == RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); 1278 DCHECK(safepoint_mode == RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS);
(...skipping 5163 matching lines...) Expand 10 before | Expand all | Expand 10 after
6449 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6442 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6450 RecordSafepoint(Safepoint::kNoLazyDeopt); 6443 RecordSafepoint(Safepoint::kNoLazyDeopt);
6451 } 6444 }
6452 6445
6453 6446
6454 #undef __ 6447 #undef __
6455 6448
6456 } } // namespace v8::internal 6449 } } // namespace v8::internal
6457 6450
6458 #endif // V8_TARGET_ARCH_X87 6451 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | src/x87/lithium-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698