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

Side by Side Diff: src/objects.h

Issue 7147014: Fix building in release mode with disassembler=on (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: modify #ifdefs instead of SConstruct Created 9 years, 6 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 3363 matching lines...) Expand 10 before | Expand all | Expand 10 after
3374 return (length() - kFirstDeoptEntryIndex) / kDeoptEntrySize; 3374 return (length() - kFirstDeoptEntryIndex) / kDeoptEntrySize;
3375 } 3375 }
3376 3376
3377 // Allocates a DeoptimizationInputData. 3377 // Allocates a DeoptimizationInputData.
3378 MUST_USE_RESULT static MaybeObject* Allocate(int deopt_entry_count, 3378 MUST_USE_RESULT static MaybeObject* Allocate(int deopt_entry_count,
3379 PretenureFlag pretenure); 3379 PretenureFlag pretenure);
3380 3380
3381 // Casting. 3381 // Casting.
3382 static inline DeoptimizationInputData* cast(Object* obj); 3382 static inline DeoptimizationInputData* cast(Object* obj);
3383 3383
3384 #ifdef OBJECT_PRINT 3384 #if defined(OBJECT_PRINT) || defined(ENABLE_DISASSEMBLER)
3385 void DeoptimizationInputDataPrint(FILE* out); 3385 void DeoptimizationInputDataPrint(FILE* out);
3386 #endif 3386 #endif
3387 3387
3388 private: 3388 private:
3389 static int IndexForEntry(int i) { 3389 static int IndexForEntry(int i) {
3390 return kFirstDeoptEntryIndex + (i * kDeoptEntrySize); 3390 return kFirstDeoptEntryIndex + (i * kDeoptEntrySize);
3391 } 3391 }
3392 3392
3393 static int LengthFor(int entry_count) { 3393 static int LengthFor(int entry_count) {
3394 return IndexForEntry(entry_count); 3394 return IndexForEntry(entry_count);
(...skipping 18 matching lines...) Expand all
3413 return deopt_points * 2; 3413 return deopt_points * 2;
3414 } 3414 }
3415 3415
3416 // Allocates a DeoptimizationOutputData. 3416 // Allocates a DeoptimizationOutputData.
3417 MUST_USE_RESULT static MaybeObject* Allocate(int number_of_deopt_points, 3417 MUST_USE_RESULT static MaybeObject* Allocate(int number_of_deopt_points,
3418 PretenureFlag pretenure); 3418 PretenureFlag pretenure);
3419 3419
3420 // Casting. 3420 // Casting.
3421 static inline DeoptimizationOutputData* cast(Object* obj); 3421 static inline DeoptimizationOutputData* cast(Object* obj);
3422 3422
3423 #ifdef OBJECT_PRINT 3423 #if defined(OBJECT_PRINT) || defined(ENABLE_DISASSEMBLER)
3424 void DeoptimizationOutputDataPrint(FILE* out); 3424 void DeoptimizationOutputDataPrint(FILE* out);
3425 #endif 3425 #endif
3426 }; 3426 };
3427 3427
3428 3428
3429 class SafepointEntry; 3429 class SafepointEntry;
3430 3430
3431 3431
3432 // Code describes objects with on-the-fly generated machine code. 3432 // Code describes objects with on-the-fly generated machine code.
3433 class Code: public HeapObject { 3433 class Code: public HeapObject {
(...skipping 3645 matching lines...) Expand 10 before | Expand all | Expand 10 after
7079 } else { 7079 } else {
7080 value &= ~(1 << bit_position); 7080 value &= ~(1 << bit_position);
7081 } 7081 }
7082 return value; 7082 return value;
7083 } 7083 }
7084 }; 7084 };
7085 7085
7086 } } // namespace v8::internal 7086 } } // namespace v8::internal
7087 7087
7088 #endif // V8_OBJECTS_H_ 7088 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698