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

Side by Side Diff: src/isolate.h

Issue 211393007: Backport https://code.google.com/p/v8/source/detail?r=19360 to 3.24.35 (Closed) Base URL: https://github.com/v8/v8.git@3.24
Patch Set: 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
« no previous file with comments | « src/ia32/lithium-codegen-ia32.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 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 function_entry_hook_ = function_entry_hook; 1146 function_entry_hook_ = function_entry_hook;
1147 } 1147 }
1148 1148
1149 void* stress_deopt_count_address() { return &stress_deopt_count_; } 1149 void* stress_deopt_count_address() { return &stress_deopt_count_; }
1150 1150
1151 inline RandomNumberGenerator* random_number_generator(); 1151 inline RandomNumberGenerator* random_number_generator();
1152 1152
1153 // Given an address occupied by a live code object, return that object. 1153 // Given an address occupied by a live code object, return that object.
1154 Object* FindCodeObject(Address a); 1154 Object* FindCodeObject(Address a);
1155 1155
1156 int NextOptimizationId() {
1157 int id = next_optimization_id_++;
1158 if (!Smi::IsValid(next_optimization_id_)) {
1159 next_optimization_id_ = 0;
1160 }
1161 return id;
1162 }
1163
1156 private: 1164 private:
1157 Isolate(); 1165 Isolate();
1158 1166
1159 friend struct GlobalState; 1167 friend struct GlobalState;
1160 friend struct InitializeGlobalState; 1168 friend struct InitializeGlobalState;
1161 1169
1162 enum State { 1170 enum State {
1163 UNINITIALIZED, // Some components may not have been allocated. 1171 UNINITIALIZED, // Some components may not have been allocated.
1164 INITIALIZED // All components are fully initialized. 1172 INITIALIZED // All components are fully initialized.
1165 }; 1173 };
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1377 SweeperThread** sweeper_thread_; 1385 SweeperThread** sweeper_thread_;
1378 int num_sweeper_threads_; 1386 int num_sweeper_threads_;
1379 1387
1380 // TODO(yangguo): This will become obsolete once ResourceConstraints 1388 // TODO(yangguo): This will become obsolete once ResourceConstraints
1381 // becomes an argument to Isolate constructor. 1389 // becomes an argument to Isolate constructor.
1382 int max_available_threads_; 1390 int max_available_threads_;
1383 1391
1384 // Counts deopt points if deopt_every_n_times is enabled. 1392 // Counts deopt points if deopt_every_n_times is enabled.
1385 unsigned int stress_deopt_count_; 1393 unsigned int stress_deopt_count_;
1386 1394
1395 int next_optimization_id_;
1396
1387 friend class ExecutionAccess; 1397 friend class ExecutionAccess;
1388 friend class HandleScopeImplementer; 1398 friend class HandleScopeImplementer;
1389 friend class IsolateInitializer; 1399 friend class IsolateInitializer;
1390 friend class OptimizingCompilerThread; 1400 friend class OptimizingCompilerThread;
1391 friend class SweeperThread; 1401 friend class SweeperThread;
1392 friend class ThreadManager; 1402 friend class ThreadManager;
1393 friend class Simulator; 1403 friend class Simulator;
1394 friend class StackGuard; 1404 friend class StackGuard;
1395 friend class ThreadId; 1405 friend class ThreadId;
1396 friend class TestMemoryAllocatorScope; 1406 friend class TestMemoryAllocatorScope;
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1584 } 1594 }
1585 1595
1586 EmbeddedVector<char, 128> filename_; 1596 EmbeddedVector<char, 128> filename_;
1587 FILE* file_; 1597 FILE* file_;
1588 int scope_depth_; 1598 int scope_depth_;
1589 }; 1599 };
1590 1600
1591 } } // namespace v8::internal 1601 } } // namespace v8::internal
1592 1602
1593 #endif // V8_ISOLATE_H_ 1603 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698