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

Side by Side Diff: src/isolate.h

Issue 131383004: [not for landing] Diff between a64 and r19234 for no-a64 files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 typedef void* ExternalReferenceRedirectorPointer(); 95 typedef void* ExternalReferenceRedirectorPointer();
96 96
97 97
98 #ifdef ENABLE_DEBUGGER_SUPPORT 98 #ifdef ENABLE_DEBUGGER_SUPPORT
99 class Debug; 99 class Debug;
100 class Debugger; 100 class Debugger;
101 class DebuggerAgent; 101 class DebuggerAgent;
102 #endif 102 #endif
103 103
104 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \ 104 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \
105 !defined(__aarch64__) && V8_TARGET_ARCH_A64 || \
105 !defined(__mips__) && V8_TARGET_ARCH_MIPS 106 !defined(__mips__) && V8_TARGET_ARCH_MIPS
106 class Redirection; 107 class Redirection;
107 class Simulator; 108 class Simulator;
108 #endif 109 #endif
109 110
110 111
111 // Static indirection table for handles to constants. If a frame 112 // Static indirection table for handles to constants. If a frame
112 // element represents a constant, the data contains an index into 113 // element represents a constant, the data contains an index into
113 // this table of handles to the actual constants. 114 // this table of handles to the actual constants.
114 // Static indirection table for handles to constants. If a Result 115 // Static indirection table for handles to constants. If a Result
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // entered. That instance is allocated when the isolate is initially entered 379 // entered. That instance is allocated when the isolate is initially entered
379 // and reused on subsequent entries. 380 // and reused on subsequent entries.
380 class PerIsolateThreadData { 381 class PerIsolateThreadData {
381 public: 382 public:
382 PerIsolateThreadData(Isolate* isolate, ThreadId thread_id) 383 PerIsolateThreadData(Isolate* isolate, ThreadId thread_id)
383 : isolate_(isolate), 384 : isolate_(isolate),
384 thread_id_(thread_id), 385 thread_id_(thread_id),
385 stack_limit_(0), 386 stack_limit_(0),
386 thread_state_(NULL), 387 thread_state_(NULL),
387 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \ 388 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \
389 !defined(__aarch64__) && V8_TARGET_ARCH_A64 || \
388 !defined(__mips__) && V8_TARGET_ARCH_MIPS 390 !defined(__mips__) && V8_TARGET_ARCH_MIPS
389 simulator_(NULL), 391 simulator_(NULL),
390 #endif 392 #endif
391 next_(NULL), 393 next_(NULL),
392 prev_(NULL) { } 394 prev_(NULL) { }
393 Isolate* isolate() const { return isolate_; } 395 Isolate* isolate() const { return isolate_; }
394 ThreadId thread_id() const { return thread_id_; } 396 ThreadId thread_id() const { return thread_id_; }
395 void set_stack_limit(uintptr_t value) { stack_limit_ = value; } 397 void set_stack_limit(uintptr_t value) { stack_limit_ = value; }
396 uintptr_t stack_limit() const { return stack_limit_; } 398 uintptr_t stack_limit() const { return stack_limit_; }
397 ThreadState* thread_state() const { return thread_state_; } 399 ThreadState* thread_state() const { return thread_state_; }
398 void set_thread_state(ThreadState* value) { thread_state_ = value; } 400 void set_thread_state(ThreadState* value) { thread_state_ = value; }
399 401
400 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \ 402 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \
403 !defined(__aarch64__) && V8_TARGET_ARCH_A64 || \
401 !defined(__mips__) && V8_TARGET_ARCH_MIPS 404 !defined(__mips__) && V8_TARGET_ARCH_MIPS
402 Simulator* simulator() const { return simulator_; } 405 Simulator* simulator() const { return simulator_; }
403 void set_simulator(Simulator* simulator) { 406 void set_simulator(Simulator* simulator) {
404 simulator_ = simulator; 407 simulator_ = simulator;
405 } 408 }
406 #endif 409 #endif
407 410
408 bool Matches(Isolate* isolate, ThreadId thread_id) const { 411 bool Matches(Isolate* isolate, ThreadId thread_id) const {
409 return isolate_ == isolate && thread_id_.Equals(thread_id); 412 return isolate_ == isolate && thread_id_.Equals(thread_id);
410 } 413 }
411 414
412 private: 415 private:
413 Isolate* isolate_; 416 Isolate* isolate_;
414 ThreadId thread_id_; 417 ThreadId thread_id_;
415 uintptr_t stack_limit_; 418 uintptr_t stack_limit_;
416 ThreadState* thread_state_; 419 ThreadState* thread_state_;
417 420
418 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \ 421 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \
422 !defined(__aarch64__) && V8_TARGET_ARCH_A64 || \
419 !defined(__mips__) && V8_TARGET_ARCH_MIPS 423 !defined(__mips__) && V8_TARGET_ARCH_MIPS
420 Simulator* simulator_; 424 Simulator* simulator_;
421 #endif 425 #endif
422 426
423 PerIsolateThreadData* next_; 427 PerIsolateThreadData* next_;
424 PerIsolateThreadData* prev_; 428 PerIsolateThreadData* prev_;
425 429
426 friend class Isolate; 430 friend class Isolate;
427 friend class ThreadDataTable; 431 friend class ThreadDataTable;
428 friend class EntryStackItem; 432 friend class EntryStackItem;
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 HistogramInfo* heap_histograms() { return heap_histograms_; } 991 HistogramInfo* heap_histograms() { return heap_histograms_; }
988 992
989 JSObject::SpillInformation* js_spill_information() { 993 JSObject::SpillInformation* js_spill_information() {
990 return &js_spill_information_; 994 return &js_spill_information_;
991 } 995 }
992 996
993 int* code_kind_statistics() { return code_kind_statistics_; } 997 int* code_kind_statistics() { return code_kind_statistics_; }
994 #endif 998 #endif
995 999
996 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ 1000 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \
1001 V8_TARGET_ARCH_A64 && !defined(__aarch64__) || \
997 V8_TARGET_ARCH_MIPS && !defined(__mips__) 1002 V8_TARGET_ARCH_MIPS && !defined(__mips__)
998 bool simulator_initialized() { return simulator_initialized_; } 1003 bool simulator_initialized() { return simulator_initialized_; }
999 void set_simulator_initialized(bool initialized) { 1004 void set_simulator_initialized(bool initialized) {
1000 simulator_initialized_ = initialized; 1005 simulator_initialized_ = initialized;
1001 } 1006 }
1002 1007
1003 HashMap* simulator_i_cache() { return simulator_i_cache_; } 1008 HashMap* simulator_i_cache() { return simulator_i_cache_; }
1004 void set_simulator_i_cache(HashMap* hash_map) { 1009 void set_simulator_i_cache(HashMap* hash_map) {
1005 simulator_i_cache_ = hash_map; 1010 simulator_i_cache_ = hash_map;
1006 } 1011 }
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 // True if we are using the Crankshaft optimizing compiler. 1328 // True if we are using the Crankshaft optimizing compiler.
1324 bool use_crankshaft_; 1329 bool use_crankshaft_;
1325 1330
1326 // True if this isolate was initialized from a snapshot. 1331 // True if this isolate was initialized from a snapshot.
1327 bool initialized_from_snapshot_; 1332 bool initialized_from_snapshot_;
1328 1333
1329 // Time stamp at initialization. 1334 // Time stamp at initialization.
1330 double time_millis_at_init_; 1335 double time_millis_at_init_;
1331 1336
1332 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ 1337 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \
1338 V8_TARGET_ARCH_A64 && !defined(__aarch64__) || \
1333 V8_TARGET_ARCH_MIPS && !defined(__mips__) 1339 V8_TARGET_ARCH_MIPS && !defined(__mips__)
1334 bool simulator_initialized_; 1340 bool simulator_initialized_;
1335 HashMap* simulator_i_cache_; 1341 HashMap* simulator_i_cache_;
1336 Redirection* simulator_redirection_; 1342 Redirection* simulator_redirection_;
1337 #endif 1343 #endif
1338 1344
1339 #ifdef DEBUG 1345 #ifdef DEBUG
1340 // A static array of histogram info for each type. 1346 // A static array of histogram info for each type.
1341 HistogramInfo heap_histograms_[LAST_TYPE + 1]; 1347 HistogramInfo heap_histograms_[LAST_TYPE + 1];
1342 JSObject::SpillInformation js_spill_information_; 1348 JSObject::SpillInformation js_spill_information_;
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1584 } 1590 }
1585 1591
1586 EmbeddedVector<char, 128> filename_; 1592 EmbeddedVector<char, 128> filename_;
1587 FILE* file_; 1593 FILE* file_;
1588 int scope_depth_; 1594 int scope_depth_;
1589 }; 1595 };
1590 1596
1591 } } // namespace v8::internal 1597 } } // namespace v8::internal
1592 1598
1593 #endif // V8_ISOLATE_H_ 1599 #endif // V8_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698