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

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

Issue 11359127: Refactoring: Make predictable code flag handling architecture-independent. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
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), 329 emit_debug_code_(FLAG_debug_code) {
330 predictable_code_size_(false) {
331 if (buffer == NULL) { 330 if (buffer == NULL) {
332 // Do our own buffer management. 331 // Do our own buffer management.
333 if (buffer_size <= kMinimalBufferSize) { 332 if (buffer_size <= kMinimalBufferSize) {
334 buffer_size = kMinimalBufferSize; 333 buffer_size = kMinimalBufferSize;
335 334
336 if (isolate()->assembler_spare_buffer() != NULL) { 335 if (isolate()->assembler_spare_buffer() != NULL) {
337 buffer = isolate()->assembler_spare_buffer(); 336 buffer = isolate()->assembler_spare_buffer();
338 isolate()->set_assembler_spare_buffer(NULL); 337 isolate()->set_assembler_spare_buffer(NULL);
339 } 338 }
340 } 339 }
(...skipping 2431 matching lines...) Expand 10 before | Expand all | Expand 10 after
2772 2771
2773 // Since a constant pool was just emitted, move the check offset forward by 2772 // Since a constant pool was just emitted, move the check offset forward by
2774 // the standard interval. 2773 // the standard interval.
2775 next_buffer_check_ = pc_offset() + kCheckPoolInterval; 2774 next_buffer_check_ = pc_offset() + kCheckPoolInterval;
2776 } 2775 }
2777 2776
2778 2777
2779 } } // namespace v8::internal 2778 } } // namespace v8::internal
2780 2779
2781 #endif // V8_TARGET_ARCH_ARM 2780 #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