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

Side by Side Diff: src/assembler.cc

Issue 153773002: A64: Synchronize with r16679. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/ast.cc » ('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 25 matching lines...) Expand all
36 36
37 #include <cmath> 37 #include <cmath>
38 #include "api.h" 38 #include "api.h"
39 #include "builtins.h" 39 #include "builtins.h"
40 #include "counters.h" 40 #include "counters.h"
41 #include "cpu.h" 41 #include "cpu.h"
42 #include "debug.h" 42 #include "debug.h"
43 #include "deoptimizer.h" 43 #include "deoptimizer.h"
44 #include "execution.h" 44 #include "execution.h"
45 #include "ic.h" 45 #include "ic.h"
46 #include "isolate.h" 46 #include "isolate-inl.h"
47 #include "jsregexp.h" 47 #include "jsregexp.h"
48 #include "lazy-instance.h" 48 #include "lazy-instance.h"
49 #include "platform.h" 49 #include "platform.h"
50 #include "regexp-macro-assembler.h" 50 #include "regexp-macro-assembler.h"
51 #include "regexp-stack.h" 51 #include "regexp-stack.h"
52 #include "runtime.h" 52 #include "runtime.h"
53 #include "serialize.h" 53 #include "serialize.h"
54 #include "store-buffer-inl.h" 54 #include "store-buffer-inl.h"
55 #include "stub-cache.h" 55 #include "stub-cache.h"
56 #include "token.h" 56 #include "token.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // ----------------------------------------------------------------------------- 116 // -----------------------------------------------------------------------------
117 // Implementation of AssemblerBase 117 // Implementation of AssemblerBase
118 118
119 AssemblerBase::AssemblerBase(Isolate* isolate, void* buffer, int buffer_size) 119 AssemblerBase::AssemblerBase(Isolate* isolate, void* buffer, int buffer_size)
120 : isolate_(isolate), 120 : isolate_(isolate),
121 jit_cookie_(0), 121 jit_cookie_(0),
122 enabled_cpu_features_(0), 122 enabled_cpu_features_(0),
123 emit_debug_code_(FLAG_debug_code), 123 emit_debug_code_(FLAG_debug_code),
124 predictable_code_size_(false) { 124 predictable_code_size_(false) {
125 if (FLAG_mask_constants_with_cookie && isolate != NULL) { 125 if (FLAG_mask_constants_with_cookie && isolate != NULL) {
126 jit_cookie_ = V8::RandomPrivate(isolate); 126 jit_cookie_ = isolate->random_number_generator()->NextInt();
127 } 127 }
128 if (buffer == NULL) { 128 if (buffer == NULL) {
129 // Do our own buffer management. 129 // Do our own buffer management.
130 if (buffer_size <= kMinimalBufferSize) { 130 if (buffer_size <= kMinimalBufferSize) {
131 buffer_size = kMinimalBufferSize; 131 buffer_size = kMinimalBufferSize;
132 if (isolate->assembler_spare_buffer() != NULL) { 132 if (isolate->assembler_spare_buffer() != NULL) {
133 buffer = isolate->assembler_spare_buffer(); 133 buffer = isolate->assembler_spare_buffer();
134 isolate->set_assembler_spare_buffer(NULL); 134 isolate->set_assembler_spare_buffer(NULL);
135 } 135 }
136 } 136 }
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1681 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1681 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1682 state_.written_position = state_.current_position; 1682 state_.written_position = state_.current_position;
1683 written = true; 1683 written = true;
1684 } 1684 }
1685 1685
1686 // Return whether something was written. 1686 // Return whether something was written.
1687 return written; 1687 return written;
1688 } 1688 }
1689 1689
1690 } } // namespace v8::internal 1690 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698