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

Side by Side Diff: src/isolate.h

Issue 148913008: A64: Fix some compile errors when building for Android. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // assembler.h, where it is defined, here. 94 // assembler.h, where it is defined, here.
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_A64 || \ 104 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \
105 !defined(__arm__) && V8_TARGET_ARCH_ARM || \ 105 !defined(__aarch64__) && V8_TARGET_ARCH_A64 || \
106 !defined(__mips__) && V8_TARGET_ARCH_MIPS 106 !defined(__mips__) && V8_TARGET_ARCH_MIPS
107 class Redirection; 107 class Redirection;
108 class Simulator; 108 class Simulator;
109 #endif 109 #endif
110 110
111 111
112 // Static indirection table for handles to constants. If a frame 112 // Static indirection table for handles to constants. If a frame
113 // element represents a constant, the data contains an index into 113 // element represents a constant, the data contains an index into
114 // this table of handles to the actual constants. 114 // this table of handles to the actual constants.
115 // Static indirection table for handles to constants. If a Result 115 // Static indirection table for handles to constants. If a Result
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 // entered. That instance is allocated when the isolate is initially entered 387 // entered. That instance is allocated when the isolate is initially entered
388 // and reused on subsequent entries. 388 // and reused on subsequent entries.
389 class PerIsolateThreadData { 389 class PerIsolateThreadData {
390 public: 390 public:
391 PerIsolateThreadData(Isolate* isolate, ThreadId thread_id) 391 PerIsolateThreadData(Isolate* isolate, ThreadId thread_id)
392 : isolate_(isolate), 392 : isolate_(isolate),
393 thread_id_(thread_id), 393 thread_id_(thread_id),
394 stack_limit_(0), 394 stack_limit_(0),
395 thread_state_(NULL), 395 thread_state_(NULL),
396 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \ 396 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \
397 !defined(__arm__) && V8_TARGET_ARCH_A64 || \ 397 !defined(__aarch64__) && V8_TARGET_ARCH_A64 || \
398 !defined(__mips__) && V8_TARGET_ARCH_MIPS 398 !defined(__mips__) && V8_TARGET_ARCH_MIPS
399 simulator_(NULL), 399 simulator_(NULL),
400 #endif 400 #endif
401 next_(NULL), 401 next_(NULL),
402 prev_(NULL) { } 402 prev_(NULL) { }
403 Isolate* isolate() const { return isolate_; } 403 Isolate* isolate() const { return isolate_; }
404 ThreadId thread_id() const { return thread_id_; } 404 ThreadId thread_id() const { return thread_id_; }
405 void set_stack_limit(uintptr_t value) { stack_limit_ = value; } 405 void set_stack_limit(uintptr_t value) { stack_limit_ = value; }
406 uintptr_t stack_limit() const { return stack_limit_; } 406 uintptr_t stack_limit() const { return stack_limit_; }
407 ThreadState* thread_state() const { return thread_state_; } 407 ThreadState* thread_state() const { return thread_state_; }
408 void set_thread_state(ThreadState* value) { thread_state_ = value; } 408 void set_thread_state(ThreadState* value) { thread_state_ = value; }
409 409
410 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \ 410 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \
411 !defined(__arm__) && V8_TARGET_ARCH_A64 || \ 411 !defined(__aarch64__) && V8_TARGET_ARCH_A64 || \
412 !defined(__mips__) && V8_TARGET_ARCH_MIPS 412 !defined(__mips__) && V8_TARGET_ARCH_MIPS
413 Simulator* simulator() const { return simulator_; } 413 Simulator* simulator() const { return simulator_; }
414 void set_simulator(Simulator* simulator) { 414 void set_simulator(Simulator* simulator) {
415 simulator_ = simulator; 415 simulator_ = simulator;
416 } 416 }
417 #endif 417 #endif
418 418
419 bool Matches(Isolate* isolate, ThreadId thread_id) const { 419 bool Matches(Isolate* isolate, ThreadId thread_id) const {
420 return isolate_ == isolate && thread_id_.Equals(thread_id); 420 return isolate_ == isolate && thread_id_.Equals(thread_id);
421 } 421 }
422 422
423 private: 423 private:
424 Isolate* isolate_; 424 Isolate* isolate_;
425 ThreadId thread_id_; 425 ThreadId thread_id_;
426 uintptr_t stack_limit_; 426 uintptr_t stack_limit_;
427 ThreadState* thread_state_; 427 ThreadState* thread_state_;
428 428
429 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \ 429 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \
430 !defined(__arm__) && V8_TARGET_ARCH_A64 || \ 430 !defined(__aarch64__) && V8_TARGET_ARCH_A64 || \
431 !defined(__mips__) && V8_TARGET_ARCH_MIPS 431 !defined(__mips__) && V8_TARGET_ARCH_MIPS
432 Simulator* simulator_; 432 Simulator* simulator_;
433 #endif 433 #endif
434 434
435 PerIsolateThreadData* next_; 435 PerIsolateThreadData* next_;
436 PerIsolateThreadData* prev_; 436 PerIsolateThreadData* prev_;
437 437
438 friend class Isolate; 438 friend class Isolate;
439 friend class ThreadDataTable; 439 friend class ThreadDataTable;
440 friend class EntryStackItem; 440 friend class EntryStackItem;
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 HistogramInfo* heap_histograms() { return heap_histograms_; } 997 HistogramInfo* heap_histograms() { return heap_histograms_; }
998 998
999 JSObject::SpillInformation* js_spill_information() { 999 JSObject::SpillInformation* js_spill_information() {
1000 return &js_spill_information_; 1000 return &js_spill_information_;
1001 } 1001 }
1002 1002
1003 int* code_kind_statistics() { return code_kind_statistics_; } 1003 int* code_kind_statistics() { return code_kind_statistics_; }
1004 #endif 1004 #endif
1005 1005
1006 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ 1006 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \
1007 V8_TARGET_ARCH_A64 && !defined(__arm__) || \ 1007 V8_TARGET_ARCH_A64 && !defined(__aarch64__) || \
1008 V8_TARGET_ARCH_MIPS && !defined(__mips__) 1008 V8_TARGET_ARCH_MIPS && !defined(__mips__)
1009 bool simulator_initialized() { return simulator_initialized_; } 1009 bool simulator_initialized() { return simulator_initialized_; }
1010 void set_simulator_initialized(bool initialized) { 1010 void set_simulator_initialized(bool initialized) {
1011 simulator_initialized_ = initialized; 1011 simulator_initialized_ = initialized;
1012 } 1012 }
1013 1013
1014 HashMap* simulator_i_cache() { return simulator_i_cache_; } 1014 HashMap* simulator_i_cache() { return simulator_i_cache_; }
1015 void set_simulator_i_cache(HashMap* hash_map) { 1015 void set_simulator_i_cache(HashMap* hash_map) {
1016 simulator_i_cache_ = hash_map; 1016 simulator_i_cache_ = hash_map;
1017 } 1017 }
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 // that a context was recently exited. 1306 // that a context was recently exited.
1307 bool context_exit_happened_; 1307 bool context_exit_happened_;
1308 1308
1309 // True if this isolate was initialized from a snapshot. 1309 // True if this isolate was initialized from a snapshot.
1310 bool initialized_from_snapshot_; 1310 bool initialized_from_snapshot_;
1311 1311
1312 // Time stamp at initialization. 1312 // Time stamp at initialization.
1313 double time_millis_at_init_; 1313 double time_millis_at_init_;
1314 1314
1315 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ 1315 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \
1316 V8_TARGET_ARCH_A64 && !defined(__arm__) || \ 1316 V8_TARGET_ARCH_A64 && !defined(__aarch64__) || \
1317 V8_TARGET_ARCH_MIPS && !defined(__mips__) 1317 V8_TARGET_ARCH_MIPS && !defined(__mips__)
1318 bool simulator_initialized_; 1318 bool simulator_initialized_;
1319 HashMap* simulator_i_cache_; 1319 HashMap* simulator_i_cache_;
1320 Redirection* simulator_redirection_; 1320 Redirection* simulator_redirection_;
1321 #endif 1321 #endif
1322 1322
1323 #ifdef DEBUG 1323 #ifdef DEBUG
1324 // A static array of histogram info for each type. 1324 // A static array of histogram info for each type.
1325 HistogramInfo heap_histograms_[LAST_TYPE + 1]; 1325 HistogramInfo heap_histograms_[LAST_TYPE + 1];
1326 JSObject::SpillInformation js_spill_information_; 1326 JSObject::SpillInformation js_spill_information_;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1510 1510
1511 // Mark the native context with out of memory. 1511 // Mark the native context with out of memory.
1512 inline void Context::mark_out_of_memory() { 1512 inline void Context::mark_out_of_memory() {
1513 native_context()->set_out_of_memory(HEAP->true_value()); 1513 native_context()->set_out_of_memory(HEAP->true_value());
1514 } 1514 }
1515 1515
1516 1516
1517 } } // namespace v8::internal 1517 } } // namespace v8::internal
1518 1518
1519 #endif // V8_ISOLATE_H_ 1519 #endif // V8_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698