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

Side by Side Diff: src/assembler.h

Issue 1594443003: [parsing] Move EvalComparison out of the assembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-source-position
Patch Set: Drop one more include. Created 4 years, 11 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 | src/assembler.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) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 20 matching lines...) Expand all
31 // The original source code covered by the above license above has been 31 // The original source code covered by the above license above has been
32 // modified significantly by Google Inc. 32 // modified significantly by Google Inc.
33 // Copyright 2012 the V8 project authors. All rights reserved. 33 // Copyright 2012 the V8 project authors. All rights reserved.
34 34
35 #ifndef V8_ASSEMBLER_H_ 35 #ifndef V8_ASSEMBLER_H_
36 #define V8_ASSEMBLER_H_ 36 #define V8_ASSEMBLER_H_
37 37
38 #include "src/allocation.h" 38 #include "src/allocation.h"
39 #include "src/builtins.h" 39 #include "src/builtins.h"
40 #include "src/isolate.h" 40 #include "src/isolate.h"
41 #include "src/parsing/token.h"
42 #include "src/runtime/runtime.h" 41 #include "src/runtime/runtime.h"
43 42
44 namespace v8 { 43 namespace v8 {
45 44
46 // Forward declarations. 45 // Forward declarations.
47 class ApiFunction; 46 class ApiFunction;
48 47
49 namespace internal { 48 namespace internal {
50 49
51 // Forward declarations. 50 // Forward declarations.
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
1112 // Utility functions 1111 // Utility functions
1113 1112
1114 inline int NumberOfBitsSet(uint32_t x) { 1113 inline int NumberOfBitsSet(uint32_t x) {
1115 unsigned int num_bits_set; 1114 unsigned int num_bits_set;
1116 for (num_bits_set = 0; x; x >>= 1) { 1115 for (num_bits_set = 0; x; x >>= 1) {
1117 num_bits_set += x & 1; 1116 num_bits_set += x & 1;
1118 } 1117 }
1119 return num_bits_set; 1118 return num_bits_set;
1120 } 1119 }
1121 1120
1122 bool EvalComparison(Token::Value op, double op1, double op2);
1123
1124 // Computes pow(x, y) with the special cases in the spec for Math.pow. 1121 // Computes pow(x, y) with the special cases in the spec for Math.pow.
1125 double power_helper(Isolate* isolate, double x, double y); 1122 double power_helper(Isolate* isolate, double x, double y);
1126 double power_double_int(double x, int y); 1123 double power_double_int(double x, int y);
1127 double power_double_double(double x, double y); 1124 double power_double_double(double x, double y);
1128 1125
1129 // Helper class for generating code or data associated with the code 1126 // Helper class for generating code or data associated with the code
1130 // right after a call instruction. As an example this can be used to 1127 // right after a call instruction. As an example this can be used to
1131 // generate safepoint data after calls for crankshaft. 1128 // generate safepoint data after calls for crankshaft.
1132 class CallWrapper { 1129 class CallWrapper {
1133 public: 1130 public:
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 std::vector<ConstantPoolEntry> shared_entries; 1274 std::vector<ConstantPoolEntry> shared_entries;
1278 }; 1275 };
1279 1276
1280 Label emitted_label_; // Records pc_offset of emitted pool 1277 Label emitted_label_; // Records pc_offset of emitted pool
1281 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; 1278 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES];
1282 }; 1279 };
1283 1280
1284 } // namespace internal 1281 } // namespace internal
1285 } // namespace v8 1282 } // namespace v8
1286 #endif // V8_ASSEMBLER_H_ 1283 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698