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

Side by Side Diff: src/isolate.h

Issue 180243010: Delete the simulator when we don't need it anymore (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 9 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/arm/simulator-arm.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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 // A thread has a PerIsolateThreadData instance for each isolate that it has 382 // A thread has a PerIsolateThreadData instance for each isolate that it has
383 // entered. That instance is allocated when the isolate is initially entered 383 // entered. That instance is allocated when the isolate is initially entered
384 // and reused on subsequent entries. 384 // and reused on subsequent entries.
385 class PerIsolateThreadData { 385 class PerIsolateThreadData {
386 public: 386 public:
387 PerIsolateThreadData(Isolate* isolate, ThreadId thread_id) 387 PerIsolateThreadData(Isolate* isolate, ThreadId thread_id)
388 : isolate_(isolate), 388 : isolate_(isolate),
389 thread_id_(thread_id), 389 thread_id_(thread_id),
390 stack_limit_(0), 390 stack_limit_(0),
391 thread_state_(NULL), 391 thread_state_(NULL),
392 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \
393 !defined(__aarch64__) && V8_TARGET_ARCH_A64 || \
394 !defined(__mips__) && V8_TARGET_ARCH_MIPS
395 simulator_(NULL), 392 simulator_(NULL),
396 #endif
397 next_(NULL), 393 next_(NULL),
398 prev_(NULL) { } 394 prev_(NULL) { }
395 ~PerIsolateThreadData();
399 Isolate* isolate() const { return isolate_; } 396 Isolate* isolate() const { return isolate_; }
400 ThreadId thread_id() const { return thread_id_; } 397 ThreadId thread_id() const { return thread_id_; }
401 398
402 FIELD_ACCESSOR(uintptr_t, stack_limit) 399 FIELD_ACCESSOR(uintptr_t, stack_limit)
403 FIELD_ACCESSOR(ThreadState*, thread_state) 400 FIELD_ACCESSOR(ThreadState*, thread_state)
404
405 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \
406 !defined(__aarch64__) && V8_TARGET_ARCH_A64 || \
407 !defined(__mips__) && V8_TARGET_ARCH_MIPS
408 FIELD_ACCESSOR(Simulator*, simulator) 401 FIELD_ACCESSOR(Simulator*, simulator)
409 #endif
410 402
411 bool Matches(Isolate* isolate, ThreadId thread_id) const { 403 bool Matches(Isolate* isolate, ThreadId thread_id) const {
412 return isolate_ == isolate && thread_id_.Equals(thread_id); 404 return isolate_ == isolate && thread_id_.Equals(thread_id);
413 } 405 }
414 406
415 private: 407 private:
416 Isolate* isolate_; 408 Isolate* isolate_;
417 ThreadId thread_id_; 409 ThreadId thread_id_;
418 uintptr_t stack_limit_; 410 uintptr_t stack_limit_;
419 ThreadState* thread_state_; 411 ThreadState* thread_state_;
420
421 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \
422 !defined(__aarch64__) && V8_TARGET_ARCH_A64 || \
423 !defined(__mips__) && V8_TARGET_ARCH_MIPS
424 Simulator* simulator_; 412 Simulator* simulator_;
425 #endif
426 413
427 PerIsolateThreadData* next_; 414 PerIsolateThreadData* next_;
428 PerIsolateThreadData* prev_; 415 PerIsolateThreadData* prev_;
429 416
430 friend class Isolate; 417 friend class Isolate;
431 friend class ThreadDataTable; 418 friend class ThreadDataTable;
432 friend class EntryStackItem; 419 friend class EntryStackItem;
433 420
434 DISALLOW_COPY_AND_ASSIGN(PerIsolateThreadData); 421 DISALLOW_COPY_AND_ASSIGN(PerIsolateThreadData);
435 }; 422 };
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 } 1541 }
1555 1542
1556 EmbeddedVector<char, 128> filename_; 1543 EmbeddedVector<char, 128> filename_;
1557 FILE* file_; 1544 FILE* file_;
1558 int scope_depth_; 1545 int scope_depth_;
1559 }; 1546 };
1560 1547
1561 } } // namespace v8::internal 1548 } } // namespace v8::internal
1562 1549
1563 #endif // V8_ISOLATE_H_ 1550 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/arm/simulator-arm.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698