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

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: Address comments 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
« no previous file with comments | « src/a64/cpu-a64.cc ('k') | src/isolate.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 // 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 // entered. That instance is allocated when the isolate is initially entered 396 // entered. That instance is allocated when the isolate is initially entered
397 // and reused on subsequent entries. 397 // and reused on subsequent entries.
398 class PerIsolateThreadData { 398 class PerIsolateThreadData {
399 public: 399 public:
400 PerIsolateThreadData(Isolate* isolate, ThreadId thread_id) 400 PerIsolateThreadData(Isolate* isolate, ThreadId thread_id)
401 : isolate_(isolate), 401 : isolate_(isolate),
402 thread_id_(thread_id), 402 thread_id_(thread_id),
403 stack_limit_(0), 403 stack_limit_(0),
404 thread_state_(NULL), 404 thread_state_(NULL),
405 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \ 405 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \
406 !defined(__arm__) && V8_TARGET_ARCH_A64 || \ 406 !defined(__aarch64__) && V8_TARGET_ARCH_A64 || \
407 !defined(__mips__) && V8_TARGET_ARCH_MIPS 407 !defined(__mips__) && V8_TARGET_ARCH_MIPS
408 simulator_(NULL), 408 simulator_(NULL),
409 #endif 409 #endif
410 next_(NULL), 410 next_(NULL),
411 prev_(NULL) { } 411 prev_(NULL) { }
412 Isolate* isolate() const { return isolate_; } 412 Isolate* isolate() const { return isolate_; }
413 ThreadId thread_id() const { return thread_id_; } 413 ThreadId thread_id() const { return thread_id_; }
414 void set_stack_limit(uintptr_t value) { stack_limit_ = value; } 414 void set_stack_limit(uintptr_t value) { stack_limit_ = value; }
415 uintptr_t stack_limit() const { return stack_limit_; } 415 uintptr_t stack_limit() const { return stack_limit_; }
416 ThreadState* thread_state() const { return thread_state_; } 416 ThreadState* thread_state() const { return thread_state_; }
417 void set_thread_state(ThreadState* value) { thread_state_ = value; } 417 void set_thread_state(ThreadState* value) { thread_state_ = value; }
418 418
419 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \ 419 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \
420 !defined(__arm__) && V8_TARGET_ARCH_A64 || \ 420 !defined(__aarch64__) && V8_TARGET_ARCH_A64 || \
421 !defined(__mips__) && V8_TARGET_ARCH_MIPS 421 !defined(__mips__) && V8_TARGET_ARCH_MIPS
422 Simulator* simulator() const { return simulator_; } 422 Simulator* simulator() const { return simulator_; }
423 void set_simulator(Simulator* simulator) { 423 void set_simulator(Simulator* simulator) {
424 simulator_ = simulator; 424 simulator_ = simulator;
425 } 425 }
426 #endif 426 #endif
427 427
428 bool Matches(Isolate* isolate, ThreadId thread_id) const { 428 bool Matches(Isolate* isolate, ThreadId thread_id) const {
429 return isolate_ == isolate && thread_id_.Equals(thread_id); 429 return isolate_ == isolate && thread_id_.Equals(thread_id);
430 } 430 }
431 431
432 private: 432 private:
433 Isolate* isolate_; 433 Isolate* isolate_;
434 ThreadId thread_id_; 434 ThreadId thread_id_;
435 uintptr_t stack_limit_; 435 uintptr_t stack_limit_;
436 ThreadState* thread_state_; 436 ThreadState* thread_state_;
437 437
438 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \ 438 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \
439 !defined(__arm__) && V8_TARGET_ARCH_A64 || \ 439 !defined(__aarch64__) && V8_TARGET_ARCH_A64 || \
440 !defined(__mips__) && V8_TARGET_ARCH_MIPS 440 !defined(__mips__) && V8_TARGET_ARCH_MIPS
441 Simulator* simulator_; 441 Simulator* simulator_;
442 #endif 442 #endif
443 443
444 PerIsolateThreadData* next_; 444 PerIsolateThreadData* next_;
445 PerIsolateThreadData* prev_; 445 PerIsolateThreadData* prev_;
446 446
447 friend class Isolate; 447 friend class Isolate;
448 friend class ThreadDataTable; 448 friend class ThreadDataTable;
449 friend class EntryStackItem; 449 friend class EntryStackItem;
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 HistogramInfo* heap_histograms() { return heap_histograms_; } 1006 HistogramInfo* heap_histograms() { return heap_histograms_; }
1007 1007
1008 JSObject::SpillInformation* js_spill_information() { 1008 JSObject::SpillInformation* js_spill_information() {
1009 return &js_spill_information_; 1009 return &js_spill_information_;
1010 } 1010 }
1011 1011
1012 int* code_kind_statistics() { return code_kind_statistics_; } 1012 int* code_kind_statistics() { return code_kind_statistics_; }
1013 #endif 1013 #endif
1014 1014
1015 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ 1015 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \
1016 V8_TARGET_ARCH_A64 && !defined(__arm__) || \ 1016 V8_TARGET_ARCH_A64 && !defined(__aarch64__) || \
1017 V8_TARGET_ARCH_MIPS && !defined(__mips__) 1017 V8_TARGET_ARCH_MIPS && !defined(__mips__)
1018 bool simulator_initialized() { return simulator_initialized_; } 1018 bool simulator_initialized() { return simulator_initialized_; }
1019 void set_simulator_initialized(bool initialized) { 1019 void set_simulator_initialized(bool initialized) {
1020 simulator_initialized_ = initialized; 1020 simulator_initialized_ = initialized;
1021 } 1021 }
1022 1022
1023 HashMap* simulator_i_cache() { return simulator_i_cache_; } 1023 HashMap* simulator_i_cache() { return simulator_i_cache_; }
1024 void set_simulator_i_cache(HashMap* hash_map) { 1024 void set_simulator_i_cache(HashMap* hash_map) {
1025 simulator_i_cache_ = hash_map; 1025 simulator_i_cache_ = hash_map;
1026 } 1026 }
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 // that a context was recently exited. 1320 // that a context was recently exited.
1321 bool context_exit_happened_; 1321 bool context_exit_happened_;
1322 1322
1323 // True if this isolate was initialized from a snapshot. 1323 // True if this isolate was initialized from a snapshot.
1324 bool initialized_from_snapshot_; 1324 bool initialized_from_snapshot_;
1325 1325
1326 // Time stamp at initialization. 1326 // Time stamp at initialization.
1327 double time_millis_at_init_; 1327 double time_millis_at_init_;
1328 1328
1329 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ 1329 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \
1330 V8_TARGET_ARCH_A64 && !defined(__arm__) || \ 1330 V8_TARGET_ARCH_A64 && !defined(__aarch64__) || \
1331 V8_TARGET_ARCH_MIPS && !defined(__mips__) 1331 V8_TARGET_ARCH_MIPS && !defined(__mips__)
1332 bool simulator_initialized_; 1332 bool simulator_initialized_;
1333 HashMap* simulator_i_cache_; 1333 HashMap* simulator_i_cache_;
1334 Redirection* simulator_redirection_; 1334 Redirection* simulator_redirection_;
1335 #endif 1335 #endif
1336 1336
1337 #ifdef DEBUG 1337 #ifdef DEBUG
1338 // A static array of histogram info for each type. 1338 // A static array of histogram info for each type.
1339 HistogramInfo heap_histograms_[LAST_TYPE + 1]; 1339 HistogramInfo heap_histograms_[LAST_TYPE + 1];
1340 JSObject::SpillInformation js_spill_information_; 1340 JSObject::SpillInformation js_spill_information_;
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 1527
1528 // Mark the native context with out of memory. 1528 // Mark the native context with out of memory.
1529 inline void Context::mark_out_of_memory() { 1529 inline void Context::mark_out_of_memory() {
1530 native_context()->set_out_of_memory(HEAP->true_value()); 1530 native_context()->set_out_of_memory(HEAP->true_value());
1531 } 1531 }
1532 1532
1533 1533
1534 } } // namespace v8::internal 1534 } } // namespace v8::internal
1535 1535
1536 #endif // V8_ISOLATE_H_ 1536 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/a64/cpu-a64.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698