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

Side by Side Diff: src/globals.h

Issue 2636913002: [liveedit] reimplement frame restarting. (Closed)
Patch Set: rebase Created 3 years, 10 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 | « src/full-codegen/full-codegen.cc ('k') | src/ia32/interface-descriptors-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_GLOBALS_H_ 5 #ifndef V8_GLOBALS_H_
6 #define V8_GLOBALS_H_ 6 #define V8_GLOBALS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 kSignedSmall = 0x01, 1267 kSignedSmall = 0x01,
1268 kNumber = 0x3, 1268 kNumber = 0x3,
1269 kNumberOrOddball = 0x7, 1269 kNumberOrOddball = 0x7,
1270 kInternalizedString = 0x8, 1270 kInternalizedString = 0x8,
1271 kString = 0x18, 1271 kString = 0x18,
1272 kReceiver = 0x20, 1272 kReceiver = 0x20,
1273 kAny = 0x7F 1273 kAny = 0x7F
1274 }; 1274 };
1275 }; 1275 };
1276 1276
1277 // Describes how exactly a frame has been dropped from stack.
1278 enum LiveEditFrameDropMode {
1279 // No frame has been dropped.
1280 LIVE_EDIT_FRAMES_UNTOUCHED,
1281 // The top JS frame had been calling debug break slot stub. Patch the
1282 // address this stub jumps to in the end.
1283 LIVE_EDIT_FRAME_DROPPED_IN_DEBUG_SLOT_CALL,
1284 // The top JS frame had been calling some C++ function. The return address
1285 // gets patched automatically.
1286 LIVE_EDIT_FRAME_DROPPED_IN_DIRECT_CALL,
1287 LIVE_EDIT_FRAME_DROPPED_IN_RETURN_CALL,
1288 LIVE_EDIT_CURRENTLY_SET_MODE
1289 };
1290
1291 enum class UnicodeEncoding : uint8_t { 1277 enum class UnicodeEncoding : uint8_t {
1292 // Different unicode encodings in a |word32|: 1278 // Different unicode encodings in a |word32|:
1293 UTF16, // hi 16bits -> trailing surrogate or 0, low 16bits -> lead surrogate 1279 UTF16, // hi 16bits -> trailing surrogate or 0, low 16bits -> lead surrogate
1294 UTF32, // full UTF32 code unit / Unicode codepoint 1280 UTF32, // full UTF32 code unit / Unicode codepoint
1295 }; 1281 };
1296 1282
1297 inline size_t hash_value(UnicodeEncoding encoding) { 1283 inline size_t hash_value(UnicodeEncoding encoding) {
1298 return static_cast<uint8_t>(encoding); 1284 return static_cast<uint8_t>(encoding);
1299 } 1285 }
1300 1286
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 } // namespace internal 1324 } // namespace internal
1339 } // namespace v8 1325 } // namespace v8
1340 1326
1341 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is 1327 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is
1342 // reducing a JSArray method, or a JSTypedArray method. 1328 // reducing a JSArray method, or a JSTypedArray method.
1343 enum class ArrayIteratorKind { kArray, kTypedArray }; 1329 enum class ArrayIteratorKind { kArray, kTypedArray };
1344 1330
1345 namespace i = v8::internal; 1331 namespace i = v8::internal;
1346 1332
1347 #endif // V8_GLOBALS_H_ 1333 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/ia32/interface-descriptors-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698