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

Side by Side Diff: src/x64/regexp-macro-assembler-x64.cc

Issue 10534006: Remove TLS access for current Zone. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review. 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/x64/regexp-macro-assembler-x64.h ('k') | src/zone.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 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 * int* capture_output_array, 110 * int* capture_output_array,
111 * bool at_start, 111 * bool at_start,
112 * byte* stack_area_base, 112 * byte* stack_area_base,
113 * bool direct_call) 113 * bool direct_call)
114 */ 114 */
115 115
116 #define __ ACCESS_MASM((&masm_)) 116 #define __ ACCESS_MASM((&masm_))
117 117
118 RegExpMacroAssemblerX64::RegExpMacroAssemblerX64( 118 RegExpMacroAssemblerX64::RegExpMacroAssemblerX64(
119 Mode mode, 119 Mode mode,
120 int registers_to_save) 120 int registers_to_save,
121 : masm_(Isolate::Current(), NULL, kRegExpCodeSize), 121 Zone* zone)
122 : NativeRegExpMacroAssembler(zone),
123 masm_(Isolate::Current(), NULL, kRegExpCodeSize),
122 no_root_array_scope_(&masm_), 124 no_root_array_scope_(&masm_),
123 code_relative_fixup_positions_(4), 125 code_relative_fixup_positions_(4, zone),
124 mode_(mode), 126 mode_(mode),
125 num_registers_(registers_to_save), 127 num_registers_(registers_to_save),
126 num_saved_registers_(registers_to_save), 128 num_saved_registers_(registers_to_save),
127 entry_label_(), 129 entry_label_(),
128 start_label_(), 130 start_label_(),
129 success_label_(), 131 success_label_(),
130 backtrack_label_(), 132 backtrack_label_(),
131 exit_label_() { 133 exit_label_() {
132 ASSERT_EQ(0, registers_to_save % 2); 134 ASSERT_EQ(0, registers_to_save % 2);
133 __ jmp(&entry_label_); // We'll write the entry code when we know more. 135 __ jmp(&entry_label_); // We'll write the entry code when we know more.
(...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1525 } 1527 }
1526 } 1528 }
1527 1529
1528 #undef __ 1530 #undef __
1529 1531
1530 #endif // V8_INTERPRETED_REGEXP 1532 #endif // V8_INTERPRETED_REGEXP
1531 1533
1532 }} // namespace v8::internal 1534 }} // namespace v8::internal
1533 1535
1534 #endif // V8_TARGET_ARCH_X64 1536 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/regexp-macro-assembler-x64.h ('k') | src/zone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698