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

Side by Side Diff: runtime/platform/globals.h

Issue 1864143002: Add instruction tags to saved ICData (debug mode only). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | runtime/vm/flow_graph_compiler.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 #ifndef PLATFORM_GLOBALS_H_ 5 #ifndef PLATFORM_GLOBALS_H_
6 #define PLATFORM_GLOBALS_H_ 6 #define PLATFORM_GLOBALS_H_
7 7
8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to 8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to
9 // enable platform independent printf format specifiers. 9 // enable platform independent printf format specifiers.
10 #ifndef __STDC_FORMAT_MACROS 10 #ifndef __STDC_FORMAT_MACROS
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 #else 643 #else
644 #define PRINTF_ATTRIBUTE(string_index, first_to_check) 644 #define PRINTF_ATTRIBUTE(string_index, first_to_check)
645 #endif 645 #endif
646 646
647 #if defined(_WIN32) 647 #if defined(_WIN32)
648 #define STDIN_FILENO 0 648 #define STDIN_FILENO 0
649 #define STDOUT_FILENO 1 649 #define STDOUT_FILENO 1
650 #define STDERR_FILENO 2 650 #define STDERR_FILENO 2
651 #endif 651 #endif
652 652
653 // For checking deterministic graph generation, we can store instruction
654 // tag in the ICData and check it when recreating the flow graph in
655 // optimizing compiler. Enable it for other modes (product, release) if needed
656 // for debugging.
657 #if defined(DEBUG)
658 #define TAG_IC_DATA
659 #endif
660
653 } // namespace dart 661 } // namespace dart
654 662
655 #endif // PLATFORM_GLOBALS_H_ 663 #endif // PLATFORM_GLOBALS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698