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

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

Issue 306483005: - Use isolate where it is appropriate. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | Annotate | Revision Log
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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 num_args_checked)); // No arguments checked. 1241 num_args_checked)); // No arguments checked.
1242 ic_data.AddTarget(target_function); 1242 ic_data.AddTarget(target_function);
1243 uword label_address = 0; 1243 uword label_address = 0;
1244 if (ic_data.NumArgsTested() == 0) { 1244 if (ic_data.NumArgsTested() == 0) {
1245 label_address = StubCode::ZeroArgsUnoptimizedStaticCallEntryPoint(); 1245 label_address = StubCode::ZeroArgsUnoptimizedStaticCallEntryPoint();
1246 } else if (ic_data.NumArgsTested() == 2) { 1246 } else if (ic_data.NumArgsTested() == 2) {
1247 label_address = StubCode::TwoArgsUnoptimizedStaticCallEntryPoint(); 1247 label_address = StubCode::TwoArgsUnoptimizedStaticCallEntryPoint();
1248 } else { 1248 } else {
1249 UNIMPLEMENTED(); 1249 UNIMPLEMENTED();
1250 } 1250 }
1251 ExternalLabel target_label("StaticCallICStub", label_address); 1251 ExternalLabel target_label(label_address);
1252 __ LoadObject(RBX, ic_data, PP); 1252 __ LoadObject(RBX, ic_data, PP);
1253 GenerateDartCall(deopt_id, 1253 GenerateDartCall(deopt_id,
1254 token_pos, 1254 token_pos,
1255 &target_label, 1255 &target_label,
1256 PcDescriptors::kUnoptStaticCall, 1256 PcDescriptors::kUnoptStaticCall,
1257 locs); 1257 locs);
1258 __ Drop(argument_count); 1258 __ Drop(argument_count);
1259 } 1259 }
1260 1260
1261 1261
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 __ movups(reg, Address(RSP, 0)); 1783 __ movups(reg, Address(RSP, 0));
1784 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); 1784 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP);
1785 } 1785 }
1786 1786
1787 1787
1788 #undef __ 1788 #undef __
1789 1789
1790 } // namespace dart 1790 } // namespace dart
1791 1791
1792 #endif // defined TARGET_ARCH_X64 1792 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698