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

Side by Side Diff: vm/stub_code_ia32.cc

Issue 11017069: - Remove deprecated Dart API calls Dart_ClosureSmrck and DartClosureSetSmrck (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 2 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/raw_object.h ('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 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 __ addl(ECX, Immediate(kHeapObjectTag)); 1420 __ addl(ECX, Immediate(kHeapObjectTag));
1421 __ movl(Address(EAX, Closure::context_offset()), ECX); 1421 __ movl(Address(EAX, Closure::context_offset()), ECX);
1422 } else { 1422 } else {
1423 __ movl(Address(EAX, Closure::context_offset()), CTX); 1423 __ movl(Address(EAX, Closure::context_offset()), CTX);
1424 } 1424 }
1425 1425
1426 // Set the type arguments field in the newly allocated closure. 1426 // Set the type arguments field in the newly allocated closure.
1427 __ movl(EDX, Address(ESP, kTypeArgumentsOffset)); 1427 __ movl(EDX, Address(ESP, kTypeArgumentsOffset));
1428 __ movl(Address(EAX, Closure::type_arguments_offset()), EDX); 1428 __ movl(Address(EAX, Closure::type_arguments_offset()), EDX);
1429 1429
1430 __ movl(Address(EAX, Closure::smrck_offset()), raw_null);
1431
1432 // Done allocating and initializing the instance. 1430 // Done allocating and initializing the instance.
1433 // EAX: new object. 1431 // EAX: new object.
1434 __ addl(EAX, Immediate(kHeapObjectTag)); 1432 __ addl(EAX, Immediate(kHeapObjectTag));
1435 __ ret(); 1433 __ ret();
1436 1434
1437 __ Bind(&slow_case); 1435 __ Bind(&slow_case);
1438 } 1436 }
1439 if (has_type_arguments) { 1437 if (has_type_arguments) {
1440 __ movl(ECX, Address(ESP, kTypeArgumentsOffset)); 1438 __ movl(ECX, Address(ESP, kTypeArgumentsOffset));
1441 } 1439 }
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
2052 __ Drop(4); 2050 __ Drop(4);
2053 __ LeaveFrame(); 2051 __ LeaveFrame();
2054 2052
2055 __ jmp(&compute_result, Assembler::kNearJump); 2053 __ jmp(&compute_result, Assembler::kNearJump);
2056 } 2054 }
2057 2055
2058 2056
2059 } // namespace dart 2057 } // namespace dart
2060 2058
2061 #endif // defined TARGET_ARCH_IA32 2059 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « vm/raw_object.h ('k') | vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698