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

Side by Side Diff: vm/stub_code_ia32.cc

Issue 11519006: Add read only handles for the following predefined symbols (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years 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
« vm/ast.h ('K') | « vm/scopes.cc ('k') | vm/stub_code_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) 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_IA32) 6 #if defined(TARGET_ARCH_IA32)
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 2089 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 __ ret(); 2100 __ ret();
2101 2101
2102 __ Bind(&not_smi); 2102 __ Bind(&not_smi);
2103 __ LoadClassId(EAX, EAX); 2103 __ LoadClassId(EAX, EAX);
2104 __ SmiTag(EAX); 2104 __ SmiTag(EAX);
2105 __ ret(); 2105 __ ret();
2106 2106
2107 __ Bind(&update_ic_data); 2107 __ Bind(&update_ic_data);
2108 2108
2109 // ECX: ICData 2109 // ECX: ICData
2110 const String& equal_name = String::ZoneHandle(Symbols::EqualOperator());
2111 __ movl(EAX, Address(ESP, 1 * kWordSize)); 2110 __ movl(EAX, Address(ESP, 1 * kWordSize));
2112 __ movl(EDI, Address(ESP, 2 * kWordSize)); 2111 __ movl(EDI, Address(ESP, 2 * kWordSize));
2113 AssemblerMacros::EnterStubFrame(assembler); 2112 AssemblerMacros::EnterStubFrame(assembler);
2114 __ pushl(EDI); // arg 0 2113 __ pushl(EDI); // arg 0
2115 __ pushl(EAX); // arg 1 2114 __ pushl(EAX); // arg 1
2116 __ PushObject(equal_name); // Target's name. 2115 __ PushObject(Symbols::EqualOperatorHandle()); // Target's name.
2117 __ pushl(ECX); // ICData 2116 __ pushl(ECX); // ICData
2118 __ CallRuntime(kUpdateICDataTwoArgsRuntimeEntry); 2117 __ CallRuntime(kUpdateICDataTwoArgsRuntimeEntry);
2119 __ Drop(4); 2118 __ Drop(4);
2120 __ LeaveFrame(); 2119 __ LeaveFrame();
2121 2120
2122 __ jmp(&compute_result, Assembler::kNearJump); 2121 __ jmp(&compute_result, Assembler::kNearJump);
2123 } 2122 }
2124 2123
2125 2124
2126 // Calls to runtime to ooptimized give function 2125 // Calls to runtime to ooptimized give function
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
2219 __ Bind(&done); 2218 __ Bind(&done);
2220 __ popl(temp); 2219 __ popl(temp);
2221 __ popl(right); 2220 __ popl(right);
2222 __ popl(left); 2221 __ popl(left);
2223 __ ret(); 2222 __ ret();
2224 } 2223 }
2225 2224
2226 } // namespace dart 2225 } // namespace dart
2227 2226
2228 #endif // defined TARGET_ARCH_IA32 2227 #endif // defined TARGET_ARCH_IA32
OLDNEW
« vm/ast.h ('K') | « vm/scopes.cc ('k') | vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698