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

Side by Side Diff: runtime/vm/unit_test.h

Issue 2226893002: Optimize AOT's switchable calls for the monomorphic case. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 4 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
« no previous file with comments | « runtime/vm/thread.h ('k') | runtime/vm/unit_test.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 #ifndef VM_UNIT_TEST_H_ 5 #ifndef VM_UNIT_TEST_H_
6 #define VM_UNIT_TEST_H_ 6 #define VM_UNIT_TEST_H_
7 7
8 #include "include/dart_native_api.h" 8 #include "include/dart_native_api.h"
9 9
10 #include "platform/globals.h" 10 #include "platform/globals.h"
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 code_(Code::ZoneHandle()) { 373 code_(Code::ZoneHandle()) {
374 ASSERT(name != NULL); 374 ASSERT(name != NULL);
375 ASSERT(assembler != NULL); 375 ASSERT(assembler != NULL);
376 } 376 }
377 ~AssemblerTest() { } 377 ~AssemblerTest() { }
378 378
379 Assembler* assembler() const { return assembler_; } 379 Assembler* assembler() const { return assembler_; }
380 380
381 const Code& code() const { return code_; } 381 const Code& code() const { return code_; }
382 382
383 uword entry() const { return code_.EntryPoint(); } 383 uword payload_start() const { return code_.PayloadStart(); }
384 uword entry() const { return code_.UncheckedEntryPoint(); }
384 385
385 // Invoke/InvokeWithCodeAndThread is used to call assembler test functions 386 // Invoke/InvokeWithCodeAndThread is used to call assembler test functions
386 // using the ABI calling convention. 387 // using the ABI calling convention.
387 // ResultType is the return type of the assembler test function. 388 // ResultType is the return type of the assembler test function.
388 // ArgNType is the type of the Nth argument. 389 // ArgNType is the type of the Nth argument.
389 #if defined(USING_SIMULATOR) && !defined(TARGET_ARCH_DBC) 390 #if defined(USING_SIMULATOR) && !defined(TARGET_ARCH_DBC)
390 391
391 #if defined(ARCH_IS_64_BIT) 392 #if defined(ARCH_IS_64_BIT)
392 // TODO(fschneider): Make InvokeWithCodeAndThread<> more general and work on 393 // TODO(fschneider): Make InvokeWithCodeAndThread<> more general and work on
393 // 32-bit. 394 // 32-bit.
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 } 613 }
613 614
614 private: 615 private:
615 T* flag_; 616 T* flag_;
616 T original_value_; 617 T original_value_;
617 }; 618 };
618 619
619 } // namespace dart 620 } // namespace dart
620 621
621 #endif // VM_UNIT_TEST_H_ 622 #endif // VM_UNIT_TEST_H_
OLDNEW
« no previous file with comments | « runtime/vm/thread.h ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698