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

Side by Side Diff: vm/stub_code_x64.cc

Issue 11667012: Convert all symbols accessor to return read only handles so that it is not necessary to create a ne… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « vm/stub_code_ia32.cc ('k') | vm/symbols.h » ('j') | vm/symbols.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/assembler_macros.h" 9 #include "vm/assembler_macros.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after
1967 __ ret(); 1967 __ ret();
1968 1968
1969 __ Bind(&update_ic_data); 1969 __ Bind(&update_ic_data);
1970 1970
1971 // RCX: ICData 1971 // RCX: ICData
1972 __ movq(RAX, Address(RSP, 1 * kWordSize)); 1972 __ movq(RAX, Address(RSP, 1 * kWordSize));
1973 __ movq(R13, Address(RSP, 2 * kWordSize)); 1973 __ movq(R13, Address(RSP, 2 * kWordSize));
1974 AssemblerMacros::EnterStubFrame(assembler); 1974 AssemblerMacros::EnterStubFrame(assembler);
1975 __ pushq(R13); // arg 0 1975 __ pushq(R13); // arg 0
1976 __ pushq(RAX); // arg 1 1976 __ pushq(RAX); // arg 1
1977 __ PushObject(Symbols::EqualOperatorHandle()); // Target's name. 1977 __ PushObject(Symbols::EqualOperator()); // Target's name.
1978 __ pushq(RBX); // ICData 1978 __ pushq(RBX); // ICData
1979 __ CallRuntime(kUpdateICDataTwoArgsRuntimeEntry); 1979 __ CallRuntime(kUpdateICDataTwoArgsRuntimeEntry);
1980 __ Drop(4); 1980 __ Drop(4);
1981 __ LeaveFrame(); 1981 __ LeaveFrame();
1982 1982
1983 __ jmp(&compute_result, Assembler::kNearJump); 1983 __ jmp(&compute_result, Assembler::kNearJump);
1984 } 1984 }
1985 1985
1986 // Calls to the runtime to optimize the given function. 1986 // Calls to the runtime to optimize the given function.
1987 // RDX: function to be reoptimized. 1987 // RDX: function to be reoptimized.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
2069 __ cmpq(left, right); 2069 __ cmpq(left, right);
2070 __ Bind(&done); 2070 __ Bind(&done);
2071 __ popq(right); 2071 __ popq(right);
2072 __ popq(left); 2072 __ popq(left);
2073 __ ret(); 2073 __ ret();
2074 } 2074 }
2075 2075
2076 } // namespace dart 2076 } // namespace dart
2077 2077
2078 #endif // defined TARGET_ARCH_X64 2078 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « vm/stub_code_ia32.cc ('k') | vm/symbols.h » ('j') | vm/symbols.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698