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

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

Issue 10546095: AssemblerBase does not need remember a Zone. Fix this. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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
« no previous file with comments | « no previous file | 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 const Instr kLdrStrInstrTypeMask = 0xffff0000; 284 const Instr kLdrStrInstrTypeMask = 0xffff0000;
285 const Instr kLdrStrInstrArgumentMask = 0x0000ffff; 285 const Instr kLdrStrInstrArgumentMask = 0x0000ffff;
286 const Instr kLdrStrOffsetMask = 0x00000fff; 286 const Instr kLdrStrOffsetMask = 0x00000fff;
287 287
288 288
289 // Spare buffer. 289 // Spare buffer.
290 static const int kMinimalBufferSize = 4*KB; 290 static const int kMinimalBufferSize = 4*KB;
291 291
292 292
293 Assembler::Assembler(Isolate* arg_isolate, void* buffer, int buffer_size) 293 Assembler::Assembler(Isolate* arg_isolate, void* buffer, int buffer_size)
294 : AssemblerBase(arg_isolate, arg_isolate->zone()), 294 : AssemblerBase(arg_isolate),
295 positions_recorder_(this), 295 positions_recorder_(this),
296 emit_debug_code_(FLAG_debug_code) { 296 emit_debug_code_(FLAG_debug_code) {
297 if (buffer == NULL) { 297 if (buffer == NULL) {
298 // Do our own buffer management. 298 // Do our own buffer management.
299 if (buffer_size <= kMinimalBufferSize) { 299 if (buffer_size <= kMinimalBufferSize) {
300 buffer_size = kMinimalBufferSize; 300 buffer_size = kMinimalBufferSize;
301 301
302 if (isolate()->assembler_spare_buffer() != NULL) { 302 if (isolate()->assembler_spare_buffer() != NULL) {
303 buffer = isolate()->assembler_spare_buffer(); 303 buffer = isolate()->assembler_spare_buffer();
304 isolate()->set_assembler_spare_buffer(NULL); 304 isolate()->set_assembler_spare_buffer(NULL);
(...skipping 2352 matching lines...) Expand 10 before | Expand all | Expand 10 after
2657 2657
2658 // Since a constant pool was just emitted, move the check offset forward by 2658 // Since a constant pool was just emitted, move the check offset forward by
2659 // the standard interval. 2659 // the standard interval.
2660 next_buffer_check_ = pc_offset() + kCheckPoolInterval; 2660 next_buffer_check_ = pc_offset() + kCheckPoolInterval;
2661 } 2661 }
2662 2662
2663 2663
2664 } } // namespace v8::internal 2664 } } // namespace v8::internal
2665 2665
2666 #endif // V8_TARGET_ARCH_ARM 2666 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698