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

Side by Side Diff: src/assembler.cc

Issue 181453002: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 9 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.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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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"
57 57
58 #if V8_TARGET_ARCH_IA32 58 #if V8_TARGET_ARCH_IA32
59 #include "ia32/assembler-ia32-inl.h" 59 #include "ia32/assembler-ia32-inl.h"
60 #elif V8_TARGET_ARCH_X64 60 #elif V8_TARGET_ARCH_X64
61 #include "x64/assembler-x64-inl.h" 61 #include "x64/assembler-x64-inl.h"
62 #elif V8_TARGET_ARCH_A64
63 #include "a64/assembler-a64-inl.h"
64 #elif V8_TARGET_ARCH_ARM 62 #elif V8_TARGET_ARCH_ARM
65 #include "arm/assembler-arm-inl.h" 63 #include "arm/assembler-arm-inl.h"
66 #elif V8_TARGET_ARCH_MIPS 64 #elif V8_TARGET_ARCH_MIPS
67 #include "mips/assembler-mips-inl.h" 65 #include "mips/assembler-mips-inl.h"
68 #else 66 #else
69 #error "Unknown architecture." 67 #error "Unknown architecture."
70 #endif 68 #endif
71 69
72 // Include native regexp-macro-assembler. 70 // Include native regexp-macro-assembler.
73 #ifndef V8_INTERPRETED_REGEXP 71 #ifndef V8_INTERPRETED_REGEXP
74 #if V8_TARGET_ARCH_IA32 72 #if V8_TARGET_ARCH_IA32
75 #include "ia32/regexp-macro-assembler-ia32.h" 73 #include "ia32/regexp-macro-assembler-ia32.h"
76 #elif V8_TARGET_ARCH_X64 74 #elif V8_TARGET_ARCH_X64
77 #include "x64/regexp-macro-assembler-x64.h" 75 #include "x64/regexp-macro-assembler-x64.h"
78 #elif V8_TARGET_ARCH_A64
79 #include "a64/regexp-macro-assembler-a64.h"
80 #elif V8_TARGET_ARCH_ARM 76 #elif V8_TARGET_ARCH_ARM
81 #include "arm/regexp-macro-assembler-arm.h" 77 #include "arm/regexp-macro-assembler-arm.h"
82 #elif V8_TARGET_ARCH_MIPS 78 #elif V8_TARGET_ARCH_MIPS
83 #include "mips/regexp-macro-assembler-mips.h" 79 #include "mips/regexp-macro-assembler-mips.h"
84 #else // Unknown architecture. 80 #else // Unknown architecture.
85 #error "Unknown architecture." 81 #error "Unknown architecture."
86 #endif // Target architecture. 82 #endif // Target architecture.
87 #endif // V8_INTERPRETED_REGEXP 83 #endif // V8_INTERPRETED_REGEXP
88 84
89 namespace v8 { 85 namespace v8 {
(...skipping 29 matching lines...) Expand all
119 115
120 AssemblerBase::AssemblerBase(Isolate* isolate, void* buffer, int buffer_size) 116 AssemblerBase::AssemblerBase(Isolate* isolate, void* buffer, int buffer_size)
121 : isolate_(isolate), 117 : isolate_(isolate),
122 jit_cookie_(0), 118 jit_cookie_(0),
123 enabled_cpu_features_(0), 119 enabled_cpu_features_(0),
124 emit_debug_code_(FLAG_debug_code), 120 emit_debug_code_(FLAG_debug_code),
125 predictable_code_size_(false) { 121 predictable_code_size_(false) {
126 if (FLAG_mask_constants_with_cookie && isolate != NULL) { 122 if (FLAG_mask_constants_with_cookie && isolate != NULL) {
127 jit_cookie_ = isolate->random_number_generator()->NextInt(); 123 jit_cookie_ = isolate->random_number_generator()->NextInt();
128 } 124 }
125
129 if (buffer == NULL) { 126 if (buffer == NULL) {
130 // Do our own buffer management. 127 // Do our own buffer management.
131 if (buffer_size <= kMinimalBufferSize) { 128 if (buffer_size <= kMinimalBufferSize) {
132 buffer_size = kMinimalBufferSize; 129 buffer_size = kMinimalBufferSize;
133 if (isolate->assembler_spare_buffer() != NULL) { 130 if (isolate->assembler_spare_buffer() != NULL) {
134 buffer = isolate->assembler_spare_buffer(); 131 buffer = isolate->assembler_spare_buffer();
135 isolate->set_assembler_spare_buffer(NULL); 132 isolate->set_assembler_spare_buffer(NULL);
136 } 133 }
137 } 134 }
138 if (buffer == NULL) buffer = NewArray<byte>(buffer_size); 135 if (buffer == NULL) buffer = NewArray<byte>(buffer_size);
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1332 1329
1333 #ifndef V8_INTERPRETED_REGEXP 1330 #ifndef V8_INTERPRETED_REGEXP
1334 1331
1335 ExternalReference ExternalReference::re_check_stack_guard_state( 1332 ExternalReference ExternalReference::re_check_stack_guard_state(
1336 Isolate* isolate) { 1333 Isolate* isolate) {
1337 Address function; 1334 Address function;
1338 #if V8_TARGET_ARCH_X64 1335 #if V8_TARGET_ARCH_X64
1339 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); 1336 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState);
1340 #elif V8_TARGET_ARCH_IA32 1337 #elif V8_TARGET_ARCH_IA32
1341 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); 1338 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState);
1342 #elif V8_TARGET_ARCH_A64
1343 function = FUNCTION_ADDR(RegExpMacroAssemblerA64::CheckStackGuardState);
1344 #elif V8_TARGET_ARCH_ARM 1339 #elif V8_TARGET_ARCH_ARM
1345 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); 1340 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState);
1346 #elif V8_TARGET_ARCH_MIPS 1341 #elif V8_TARGET_ARCH_MIPS
1347 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState); 1342 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState);
1348 #else 1343 #else
1349 UNREACHABLE(); 1344 UNREACHABLE();
1350 #endif 1345 #endif
1351 return ExternalReference(Redirect(isolate, function)); 1346 return ExternalReference(Redirect(isolate, function));
1352 } 1347 }
1353 1348
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1590 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1596 state_.written_position = state_.current_position; 1591 state_.written_position = state_.current_position;
1597 written = true; 1592 written = true;
1598 } 1593 }
1599 1594
1600 // Return whether something was written. 1595 // Return whether something was written.
1601 return written; 1596 return written;
1602 } 1597 }
1603 1598
1604 } } // namespace v8::internal 1599 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698