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

Side by Side Diff: src/frames.h

Issue 769263002: Add support for enabling DCHECKs in release mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 years 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FRAMES_H_ 5 #ifndef V8_FRAMES_H_
6 #define V8_FRAMES_H_ 6 #define V8_FRAMES_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/handles.h" 9 #include "src/handles.h"
10 #include "src/safepoint-table.h" 10 #include "src/safepoint-table.h"
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 static void PrintIndex(StringStream* accumulator, 329 static void PrintIndex(StringStream* accumulator,
330 PrintMode mode, 330 PrintMode mode,
331 int index); 331 int index);
332 332
333 // Get the top handler from the current stack iterator. 333 // Get the top handler from the current stack iterator.
334 inline StackHandler* top_handler() const; 334 inline StackHandler* top_handler() const;
335 335
336 // Compute the stack frame type for the given state. 336 // Compute the stack frame type for the given state.
337 static Type ComputeType(const StackFrameIteratorBase* iterator, State* state); 337 static Type ComputeType(const StackFrameIteratorBase* iterator, State* state);
338 338
339 #ifdef DEBUG 339 #if DCHECK_IS_ON
340 bool can_access_heap_objects() const; 340 bool can_access_heap_objects() const;
341 #endif 341 #endif
342 342
343 private: 343 private:
344 const StackFrameIteratorBase* iterator_; 344 const StackFrameIteratorBase* iterator_;
345 Isolate* isolate_; 345 Isolate* isolate_;
346 State state_; 346 State state_;
347 347
348 static ReturnAddressLocationResolver return_address_location_resolver_; 348 static ReturnAddressLocationResolver return_address_location_resolver_;
349 349
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 }; 937 };
938 938
939 939
940 // Reads all frames on the current stack and copies them into the current 940 // Reads all frames on the current stack and copies them into the current
941 // zone memory. 941 // zone memory.
942 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 942 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
943 943
944 } } // namespace v8::internal 944 } } // namespace v8::internal
945 945
946 #endif // V8_FRAMES_H_ 946 #endif // V8_FRAMES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698