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

Side by Side Diff: src/x64/assembler-x64.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 | « src/safepoint-table.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 338
339 339
340 // ----------------------------------------------------------------------------- 340 // -----------------------------------------------------------------------------
341 // Implementation of Assembler. 341 // Implementation of Assembler.
342 342
343 #ifdef GENERATED_CODE_COVERAGE 343 #ifdef GENERATED_CODE_COVERAGE
344 static void InitCoverageLog(); 344 static void InitCoverageLog();
345 #endif 345 #endif
346 346
347 Assembler::Assembler(Isolate* arg_isolate, void* buffer, int buffer_size) 347 Assembler::Assembler(Isolate* arg_isolate, void* buffer, int buffer_size)
348 : AssemblerBase(arg_isolate, arg_isolate->zone()), 348 : AssemblerBase(arg_isolate),
349 code_targets_(100), 349 code_targets_(100),
350 positions_recorder_(this), 350 positions_recorder_(this),
351 emit_debug_code_(FLAG_debug_code) { 351 emit_debug_code_(FLAG_debug_code) {
352 if (buffer == NULL) { 352 if (buffer == NULL) {
353 // Do our own buffer management. 353 // Do our own buffer management.
354 if (buffer_size <= kMinimalBufferSize) { 354 if (buffer_size <= kMinimalBufferSize) {
355 buffer_size = kMinimalBufferSize; 355 buffer_size = kMinimalBufferSize;
356 356
357 if (isolate() != NULL && isolate()->assembler_spare_buffer() != NULL) { 357 if (isolate() != NULL && isolate()->assembler_spare_buffer() != NULL) {
358 buffer = isolate()->assembler_spare_buffer(); 358 buffer = isolate()->assembler_spare_buffer();
(...skipping 2682 matching lines...) Expand 10 before | Expand all | Expand 10 after
3041 bool RelocInfo::IsCodedSpecially() { 3041 bool RelocInfo::IsCodedSpecially() {
3042 // The deserializer needs to know whether a pointer is specially coded. Being 3042 // The deserializer needs to know whether a pointer is specially coded. Being
3043 // specially coded on x64 means that it is a relative 32 bit address, as used 3043 // specially coded on x64 means that it is a relative 32 bit address, as used
3044 // by branch instructions. 3044 // by branch instructions.
3045 return (1 << rmode_) & kApplyMask; 3045 return (1 << rmode_) & kApplyMask;
3046 } 3046 }
3047 3047
3048 } } // namespace v8::internal 3048 } } // namespace v8::internal
3049 3049
3050 #endif // V8_TARGET_ARCH_X64 3050 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/safepoint-table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698