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

Side by Side Diff: src/assembler.cc

Issue 609843002: Refactor FrameAndConstantPoolScope and ConstantPoolUnavailableScope to be architecture independent (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Eliminate unreachable paths. Created 6 years, 2 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/assembler.h ('k') | src/flag-definitions.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 are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // ----------------------------------------------------------------------------- 124 // -----------------------------------------------------------------------------
125 // Implementation of AssemblerBase 125 // Implementation of AssemblerBase
126 126
127 AssemblerBase::AssemblerBase(Isolate* isolate, void* buffer, int buffer_size) 127 AssemblerBase::AssemblerBase(Isolate* isolate, void* buffer, int buffer_size)
128 : isolate_(isolate), 128 : isolate_(isolate),
129 jit_cookie_(0), 129 jit_cookie_(0),
130 enabled_cpu_features_(0), 130 enabled_cpu_features_(0),
131 emit_debug_code_(FLAG_debug_code), 131 emit_debug_code_(FLAG_debug_code),
132 predictable_code_size_(false), 132 predictable_code_size_(false),
133 // We may use the assembler without an isolate. 133 // We may use the assembler without an isolate.
134 serializer_enabled_(isolate && isolate->serializer_enabled()) { 134 serializer_enabled_(isolate && isolate->serializer_enabled()),
135 ool_constant_pool_available_(false) {
135 if (FLAG_mask_constants_with_cookie && isolate != NULL) { 136 if (FLAG_mask_constants_with_cookie && isolate != NULL) {
136 jit_cookie_ = isolate->random_number_generator()->NextInt(); 137 jit_cookie_ = isolate->random_number_generator()->NextInt();
137 } 138 }
138 own_buffer_ = buffer == NULL; 139 own_buffer_ = buffer == NULL;
139 if (buffer_size == 0) buffer_size = kMinimalBufferSize; 140 if (buffer_size == 0) buffer_size = kMinimalBufferSize;
140 DCHECK(buffer_size > 0); 141 DCHECK(buffer_size > 0);
141 if (own_buffer_) buffer = NewArray<byte>(buffer_size); 142 if (own_buffer_) buffer = NewArray<byte>(buffer_size);
142 buffer_ = static_cast<byte*>(buffer); 143 buffer_ = static_cast<byte*>(buffer);
143 buffer_size_ = buffer_size; 144 buffer_size_ = buffer_size;
144 145
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1590 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1590 state_.written_position = state_.current_position; 1591 state_.written_position = state_.current_position;
1591 written = true; 1592 written = true;
1592 } 1593 }
1593 1594
1594 // Return whether something was written. 1595 // Return whether something was written.
1595 return written; 1596 return written;
1596 } 1597 }
1597 1598
1598 } } // namespace v8::internal 1599 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698