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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 1247783002: Make array allocation stub shared between isolates. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index a5e7f5e82729966550e28e3b0065e1e0dfa2622d..1ba2c3f1992448e16255c9808d30d9407a3a3987 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -2937,11 +2937,10 @@ static uword TwoArgsSmiOpInlineCacheEntry(Token::Kind kind) {
if (!FLAG_two_args_smi_icd) {
return 0;
}
- StubCode* stub_code = Isolate::Current()->stub_code();
switch (kind) {
- case Token::kADD: return stub_code->SmiAddInlineCacheEntryPoint();
- case Token::kSUB: return stub_code->SmiSubInlineCacheEntryPoint();
- case Token::kEQ: return stub_code->SmiEqualInlineCacheEntryPoint();
+ case Token::kADD: return StubCode::SmiAddInlineCacheEntryPoint();
+ case Token::kSUB: return StubCode::SmiSubInlineCacheEntryPoint();
+ case Token::kEQ: return StubCode::SmiEqualInlineCacheEntryPoint();
default: return 0;
}
}
@@ -3022,10 +3021,9 @@ void InstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
(ArgumentCount() == 1));
ASSERT(Token::IsBinaryArithmeticOperator(token_kind()) ==
(ArgumentCount() == 2));
- StubCode* stub_code = compiler->isolate()->stub_code();
ExternalLabel target_label((ArgumentCount() == 1) ?
- stub_code->UnaryRangeCollectingInlineCacheEntryPoint() :
- stub_code->BinaryRangeCollectingInlineCacheEntryPoint());
+ StubCode::UnaryRangeCollectingInlineCacheEntryPoint() :
+ StubCode::BinaryRangeCollectingInlineCacheEntryPoint());
compiler->EmitInstanceCall(&target_label, *call_ic_data, ArgumentCount(),
deopt_id(), token_pos(), locs());
} else {

Powered by Google App Engine
This is Rietveld 408576698