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

Side by Side Diff: src/arm/assembler-arm.cc

Issue 11312165: Refactoring: Make emit_debug_code flag handling architecture-independent. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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/assembler-arm.h ('k') | src/assembler.h » ('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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 const Instr kLdrStrOffsetMask = 0x00000fff; 318 const Instr kLdrStrOffsetMask = 0x00000fff;
319 319
320 320
321 // Spare buffer. 321 // Spare buffer.
322 static const int kMinimalBufferSize = 4*KB; 322 static const int kMinimalBufferSize = 4*KB;
323 323
324 324
325 Assembler::Assembler(Isolate* arg_isolate, void* buffer, int buffer_size) 325 Assembler::Assembler(Isolate* arg_isolate, void* buffer, int buffer_size)
326 : AssemblerBase(arg_isolate), 326 : AssemblerBase(arg_isolate),
327 recorded_ast_id_(TypeFeedbackId::None()), 327 recorded_ast_id_(TypeFeedbackId::None()),
328 positions_recorder_(this), 328 positions_recorder_(this) {
329 emit_debug_code_(FLAG_debug_code) {
330 if (buffer == NULL) { 329 if (buffer == NULL) {
331 // Do our own buffer management. 330 // Do our own buffer management.
332 if (buffer_size <= kMinimalBufferSize) { 331 if (buffer_size <= kMinimalBufferSize) {
333 buffer_size = kMinimalBufferSize; 332 buffer_size = kMinimalBufferSize;
334 333
335 if (isolate()->assembler_spare_buffer() != NULL) { 334 if (isolate()->assembler_spare_buffer() != NULL) {
336 buffer = isolate()->assembler_spare_buffer(); 335 buffer = isolate()->assembler_spare_buffer();
337 isolate()->set_assembler_spare_buffer(NULL); 336 isolate()->set_assembler_spare_buffer(NULL);
338 } 337 }
339 } 338 }
(...skipping 2431 matching lines...) Expand 10 before | Expand all | Expand 10 after
2771 2770
2772 // Since a constant pool was just emitted, move the check offset forward by 2771 // Since a constant pool was just emitted, move the check offset forward by
2773 // the standard interval. 2772 // the standard interval.
2774 next_buffer_check_ = pc_offset() + kCheckPoolInterval; 2773 next_buffer_check_ = pc_offset() + kCheckPoolInterval;
2775 } 2774 }
2776 2775
2777 2776
2778 } } // namespace v8::internal 2777 } } // namespace v8::internal
2779 2778
2780 #endif // V8_TARGET_ARCH_ARM 2779 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698