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

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

Issue 2109743002: DBC: Implement InstanceOf. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fold in negate_result; check the cache in the interpreter Created 4 years, 5 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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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_CONSTANTS_DBC_H_ 5 #ifndef VM_CONSTANTS_DBC_H_
6 #define VM_CONSTANTS_DBC_H_ 6 #define VM_CONSTANTS_DBC_H_
7 7
8 #include "platform/globals.h" 8 #include "platform/globals.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // catch handler. 333 // catch handler.
334 // 334 //
335 // - InstantiateType D 335 // - InstantiateType D
336 // 336 //
337 // Instantiate type PP[D] with instantiator type arguments SP[0]. 337 // Instantiate type PP[D] with instantiator type arguments SP[0].
338 // 338 //
339 // - InstantiateTypeArgumentsTOS D 339 // - InstantiateTypeArgumentsTOS D
340 // 340 //
341 // Instantiate type arguments PP[D] with instantiator SP[0]. 341 // Instantiate type arguments PP[D] with instantiator SP[0].
342 // 342 //
343 // - InstanceOf A
344 //
345 // Test if instance SP[-3] with type arguments SP[-2] is (A = 0) or is not
346 // (A = 1) a subtype of SP[-1] using SubtypeTestCache SP[0].
zra 2016/06/28 21:37:47 With result at top of stack.
rmacnak 2016/06/28 22:22:55 Done.
347 //
343 // - AssertAssignable D 348 // - AssertAssignable D
344 // 349 //
345 // Assert that SP[-3] is assignable to variable named SP[0] of type 350 // Assert that SP[-3] is assignable to variable named SP[0] of type
346 // SP[-1] with type arguments SP[-2] using SubtypeTestCache PP[D]. 351 // SP[-1] with type arguments SP[-2] using SubtypeTestCache PP[D].
347 // 352 //
348 // - AssertBoolean A 353 // - AssertBoolean A
349 // 354 //
350 // Assert that TOS is a boolean (A = 1) or that TOS is not null (A = 0). 355 // Assert that TOS is a boolean (A = 1) or that TOS is not null (A = 0).
351 // 356 //
352 // - CheckSmi rA 357 // - CheckSmi rA
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 V(Entry, A_B_C, num, num, num) \ 497 V(Entry, A_B_C, num, num, num) \
493 V(EntryOptional, A_B_C, num, num, num) \ 498 V(EntryOptional, A_B_C, num, num, num) \
494 V(EntryOptimized, A_D, num, num, ___) \ 499 V(EntryOptimized, A_D, num, num, ___) \
495 V(Frame, D, num, ___, ___) \ 500 V(Frame, D, num, ___, ___) \
496 V(SetFrame, A, num, ___, num) \ 501 V(SetFrame, A, num, ___, num) \
497 V(AllocateContext, D, num, ___, ___) \ 502 V(AllocateContext, D, num, ___, ___) \
498 V(CloneContext, 0, ___, ___, ___) \ 503 V(CloneContext, 0, ___, ___, ___) \
499 V(MoveSpecial, A_D, reg, num, ___) \ 504 V(MoveSpecial, A_D, reg, num, ___) \
500 V(InstantiateType, D, lit, ___, ___) \ 505 V(InstantiateType, D, lit, ___, ___) \
501 V(InstantiateTypeArgumentsTOS, A_D, num, lit, ___) \ 506 V(InstantiateTypeArgumentsTOS, A_D, num, lit, ___) \
507 V(InstanceOf, A, num, ___, ___) \
502 V(AssertAssignable, D, num, lit, ___) \ 508 V(AssertAssignable, D, num, lit, ___) \
503 V(AssertBoolean, A, num, ___, ___) \ 509 V(AssertBoolean, A, num, ___, ___) \
504 V(CheckSmi, A, reg, ___, ___) \ 510 V(CheckSmi, A, reg, ___, ___) \
505 V(CheckClassId, A_D, reg, lit, ___) \ 511 V(CheckClassId, A_D, reg, lit, ___) \
506 V(CheckStack, 0, ___, ___, ___) \ 512 V(CheckStack, 0, ___, ___, ___) \
507 V(DebugStep, 0, ___, ___, ___) \ 513 V(DebugStep, 0, ___, ___, ___) \
508 V(DebugBreak, A, num, ___, ___) \ 514 V(DebugBreak, A, num, ___, ___) \
509 V(Deopt, A_D, num, num, ___) \ 515 V(Deopt, A_D, num, num, ___) \
510 516
511 typedef uint32_t Instr; 517 typedef uint32_t Instr;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 kNumberOfDummyFpuRegisters, 624 kNumberOfDummyFpuRegisters,
619 }; 625 };
620 const FpuRegister FpuTMP = kFakeFpuRegister; 626 const FpuRegister FpuTMP = kFakeFpuRegister;
621 const intptr_t kNumberOfFpuRegisters = 1; 627 const intptr_t kNumberOfFpuRegisters = 1;
622 628
623 enum Condition { EQ, NE }; 629 enum Condition { EQ, NE };
624 630
625 } // namespace dart 631 } // namespace dart
626 632
627 #endif // VM_CONSTANTS_DBC_H_ 633 #endif // VM_CONSTANTS_DBC_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_dbc.cc » ('j') | runtime/vm/intermediate_language_dbc.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698