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

Side by Side Diff: src/deoptimizer.h

Issue 12314152: Miscellaneous profile-driven Isolate plumbing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/d8.cc ('k') | src/deoptimizer.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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 static void ComputeOutputFrames(Deoptimizer* deoptimizer); 248 static void ComputeOutputFrames(Deoptimizer* deoptimizer);
249 249
250 250
251 enum GetEntryMode { 251 enum GetEntryMode {
252 CALCULATE_ENTRY_ADDRESS, 252 CALCULATE_ENTRY_ADDRESS,
253 ENSURE_ENTRY_CODE 253 ENSURE_ENTRY_CODE
254 }; 254 };
255 255
256 256
257 static Address GetDeoptimizationEntry( 257 static Address GetDeoptimizationEntry(
258 Isolate* isolate,
258 int id, 259 int id,
259 BailoutType type, 260 BailoutType type,
260 GetEntryMode mode = ENSURE_ENTRY_CODE); 261 GetEntryMode mode = ENSURE_ENTRY_CODE);
261 static int GetDeoptimizationId(Address addr, BailoutType type); 262 static int GetDeoptimizationId(Address addr, BailoutType type);
262 static int GetOutputInfo(DeoptimizationOutputData* data, 263 static int GetOutputInfo(DeoptimizationOutputData* data,
263 BailoutId node_id, 264 BailoutId node_id,
264 SharedFunctionInfo* shared); 265 SharedFunctionInfo* shared);
265 266
266 // Code generation support. 267 // Code generation support.
267 static int input_offset() { return OFFSET_OF(Deoptimizer, input_); } 268 static int input_offset() { return OFFSET_OF(Deoptimizer, input_); }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 private: 310 private:
310 int count() const { return count_; } 311 int count() const { return count_; }
311 312
312 int count_; 313 int count_;
313 }; 314 };
314 315
315 int ConvertJSFrameIndexToFrameIndex(int jsframe_index); 316 int ConvertJSFrameIndexToFrameIndex(int jsframe_index);
316 317
317 static size_t GetMaxDeoptTableSize(); 318 static size_t GetMaxDeoptTableSize();
318 319
319 static void EnsureCodeForDeoptimizationEntry(BailoutType type, 320 static void EnsureCodeForDeoptimizationEntry(Isolate* isolate,
321 BailoutType type,
320 int max_entry_id); 322 int max_entry_id);
321 323
322 private: 324 private:
323 static const int kMinNumberOfEntries = 64; 325 static const int kMinNumberOfEntries = 64;
324 static const int kMaxNumberOfEntries = 16384; 326 static const int kMaxNumberOfEntries = 16384;
325 327
326 Deoptimizer(Isolate* isolate, 328 Deoptimizer(Isolate* isolate,
327 JSFunction* function, 329 JSFunction* function,
328 BailoutType type, 330 BailoutType type,
329 unsigned bailout_id, 331 unsigned bailout_id,
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 Object** expression_stack_; 879 Object** expression_stack_;
878 int source_position_; 880 int source_position_;
879 881
880 friend class Deoptimizer; 882 friend class Deoptimizer;
881 }; 883 };
882 #endif 884 #endif
883 885
884 } } // namespace v8::internal 886 } } // namespace v8::internal
885 887
886 #endif // V8_DEOPTIMIZER_H_ 888 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698