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

Side by Side Diff: runtime/vm/flow_graph_compiler_mips.cc

Issue 2272793004: Update some switchable call stub names and comments. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: . Created 4 years, 4 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 | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 __ BranchNotEqual( 1333 __ BranchNotEqual(
1334 CMPRES1, Immediate(kOneByteStringCid), &megamorphic_call); 1334 CMPRES1, Immediate(kOneByteStringCid), &megamorphic_call);
1335 1335
1336 __ lw(V0, FieldAddress(T0, String::hash_offset())); 1336 __ lw(V0, FieldAddress(T0, String::hash_offset()));
1337 __ bne(V0, ZR, &done); 1337 __ bne(V0, ZR, &done);
1338 1338
1339 __ Bind(&megamorphic_call); 1339 __ Bind(&megamorphic_call);
1340 __ Comment("Slow case: megamorphic call"); 1340 __ Comment("Slow case: megamorphic call");
1341 } 1341 }
1342 __ LoadObject(S5, cache); 1342 __ LoadObject(S5, cache);
1343 __ lw(T9, Address(THR, Thread::megamorphic_lookup_checked_entry_offset())); 1343 __ lw(T9, Address(THR, Thread::megamorphic_call_checked_entry_offset()));
1344 __ jalr(T9); 1344 __ jalr(T9);
1345 1345
1346 __ Bind(&done); 1346 __ Bind(&done);
1347 RecordSafepoint(locs, slow_path_argument_count); 1347 RecordSafepoint(locs, slow_path_argument_count);
1348 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); 1348 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id);
1349 if (FLAG_precompiled_mode) { 1349 if (FLAG_precompiled_mode) {
1350 // Megamorphic calls may occur in slow path stubs. 1350 // Megamorphic calls may occur in slow path stubs.
1351 // If valid use try_index argument. 1351 // If valid use try_index argument.
1352 if (try_index == CatchClauseNode::kInvalidTryIndex) { 1352 if (try_index == CatchClauseNode::kInvalidTryIndex) {
1353 try_index = CurrentTryIndex(); 1353 try_index = CurrentTryIndex();
(...skipping 19 matching lines...) Expand all
1373 1373
1374 1374
1375 void FlowGraphCompiler::EmitSwitchableInstanceCall( 1375 void FlowGraphCompiler::EmitSwitchableInstanceCall(
1376 const ICData& ic_data, 1376 const ICData& ic_data,
1377 intptr_t argument_count, 1377 intptr_t argument_count,
1378 intptr_t deopt_id, 1378 intptr_t deopt_id,
1379 TokenPosition token_pos, 1379 TokenPosition token_pos,
1380 LocationSummary* locs) { 1380 LocationSummary* locs) {
1381 ASSERT(ic_data.NumArgsTested() == 1); 1381 ASSERT(ic_data.NumArgsTested() == 1);
1382 const Code& initial_stub = Code::ZoneHandle( 1382 const Code& initial_stub = Code::ZoneHandle(
1383 StubCode::ICLookupThroughFunction_entry()->code()); 1383 StubCode::ICCallThroughFunction_entry()->code());
1384 1384
1385 __ Comment("SwitchableCall"); 1385 __ Comment("SwitchableCall");
1386 __ lw(T0, Address(SP, (argument_count - 1) * kWordSize)); 1386 __ lw(T0, Address(SP, (argument_count - 1) * kWordSize));
1387 __ LoadUniqueObject(S5, ic_data); 1387 __ LoadUniqueObject(S5, ic_data);
1388 __ LoadUniqueObject(CODE_REG, initial_stub); 1388 __ LoadUniqueObject(CODE_REG, initial_stub);
1389 __ lw(T9, FieldAddress(CODE_REG, Code::checked_entry_point_offset())); 1389 __ lw(T9, FieldAddress(CODE_REG, Code::checked_entry_point_offset()));
1390 __ jalr(T9); 1390 __ jalr(T9);
1391 1391
1392 AddCurrentDescriptor(RawPcDescriptors::kOther, 1392 AddCurrentDescriptor(RawPcDescriptors::kOther,
1393 Thread::kNoDeoptId, token_pos); 1393 Thread::kNoDeoptId, token_pos);
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
1957 __ AddImmediate(SP, kDoubleSize); 1957 __ AddImmediate(SP, kDoubleSize);
1958 } 1958 }
1959 1959
1960 1960
1961 #undef __ 1961 #undef __
1962 1962
1963 1963
1964 } // namespace dart 1964 } // namespace dart
1965 1965
1966 #endif // defined TARGET_ARCH_MIPS 1966 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698