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

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

Issue 201013002: x64 code improvements and cleanups. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
11 #include "vm/flow_graph_compiler.h" 11 #include "vm/flow_graph_compiler.h"
12 #include "vm/instructions.h" 12 #include "vm/instructions.h"
13 #include "vm/heap.h" 13 #include "vm/heap.h"
14 #include "vm/object_store.h" 14 #include "vm/object_store.h"
15 #include "vm/resolver.h" 15 #include "vm/resolver.h"
16 #include "vm/scavenger.h" 16 #include "vm/scavenger.h"
17 #include "vm/stack_frame.h" 17 #include "vm/stack_frame.h"
18 #include "vm/stub_code.h" 18 #include "vm/stub_code.h"
19 19
20 20
21 #define __ assembler-> 21 #define __ assembler->
22 22
23 namespace dart { 23 namespace dart {
24 24
25 DEFINE_FLAG(bool, inline_alloc, true, "Inline allocation of objects."); 25 DEFINE_FLAG(bool, inline_alloc, true, "Inline allocation of objects.");
26 DEFINE_FLAG(bool, use_slow_path, false, 26 DEFINE_FLAG(bool, use_slow_path, false,
27 "Set to true for debugging & verifying the slow paths."); 27 "Set to true for debugging & verifying the slow paths.");
28 DECLARE_FLAG(bool, trace_optimized_ic_calls); 28 DECLARE_FLAG(bool, trace_optimized_ic_calls);
29 DECLARE_FLAG(int, optimization_counter_threshold);
30 29
31 30
32 // Input parameters: 31 // Input parameters:
33 // ESP : points to return address. 32 // ESP : points to return address.
34 // ESP + 4 : address of last argument in argument array. 33 // ESP + 4 : address of last argument in argument array.
35 // ESP + 4*EDX : address of first argument in argument array. 34 // ESP + 4*EDX : address of first argument in argument array.
36 // ESP + 4*EDX + 4 : address of return value. 35 // ESP + 4*EDX + 4 : address of return value.
37 // ECX : address of the runtime function to call. 36 // ECX : address of the runtime function to call.
38 // EDX : number of arguments to the call. 37 // EDX : number of arguments to the call.
39 // Must preserve callee saved registers EDI and EBX. 38 // Must preserve callee saved registers EDI and EBX.
(...skipping 1926 matching lines...) Expand 10 before | Expand all | Expand 10 after
1966 const Register temp = ECX; 1965 const Register temp = ECX;
1967 __ movl(left, Address(ESP, 2 * kWordSize)); 1966 __ movl(left, Address(ESP, 2 * kWordSize));
1968 __ movl(right, Address(ESP, 1 * kWordSize)); 1967 __ movl(right, Address(ESP, 1 * kWordSize));
1969 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); 1968 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp);
1970 __ ret(); 1969 __ ret();
1971 } 1970 }
1972 1971
1973 } // namespace dart 1972 } // namespace dart
1974 1973
1975 #endif // defined TARGET_ARCH_IA32 1974 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698