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

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

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/lithium-x64.cc ('k') | src/x64/regexp-macro-assembler-x64.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 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 23 matching lines...) Expand all
34 #include "code.h" 34 #include "code.h"
35 #include "x64/macro-assembler-x64.h" 35 #include "x64/macro-assembler-x64.h"
36 36
37 namespace v8 { 37 namespace v8 {
38 namespace internal { 38 namespace internal {
39 39
40 #ifndef V8_INTERPRETED_REGEXP 40 #ifndef V8_INTERPRETED_REGEXP
41 41
42 class RegExpMacroAssemblerX64: public NativeRegExpMacroAssembler { 42 class RegExpMacroAssemblerX64: public NativeRegExpMacroAssembler {
43 public: 43 public:
44 RegExpMacroAssemblerX64(Mode mode, int registers_to_save); 44 RegExpMacroAssemblerX64(Mode mode, int registers_to_save, Zone* zone);
45 virtual ~RegExpMacroAssemblerX64(); 45 virtual ~RegExpMacroAssemblerX64();
46 virtual int stack_limit_slack(); 46 virtual int stack_limit_slack();
47 virtual void AdvanceCurrentPosition(int by); 47 virtual void AdvanceCurrentPosition(int by);
48 virtual void AdvanceRegister(int reg, int by); 48 virtual void AdvanceRegister(int reg, int by);
49 virtual void Backtrack(); 49 virtual void Backtrack();
50 virtual void Bind(Label* label); 50 virtual void Bind(Label* label);
51 virtual void CheckAtStart(Label* on_at_start); 51 virtual void CheckAtStart(Label* on_at_start);
52 virtual void CheckCharacter(uint32_t c, Label* on_equal); 52 virtual void CheckCharacter(uint32_t c, Label* on_equal);
53 virtual void CheckCharacterAfterAnd(uint32_t c, 53 virtual void CheckCharacterAfterAnd(uint32_t c,
54 uint32_t mask, 54 uint32_t mask,
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 inline Register code_object_pointer() { return r8; } 233 inline Register code_object_pointer() { return r8; }
234 234
235 // Byte size of chars in the string to match (decided by the Mode argument) 235 // Byte size of chars in the string to match (decided by the Mode argument)
236 inline int char_size() { return static_cast<int>(mode_); } 236 inline int char_size() { return static_cast<int>(mode_); }
237 237
238 // Equivalent to a conditional branch to the label, unless the label 238 // Equivalent to a conditional branch to the label, unless the label
239 // is NULL, in which case it is a conditional Backtrack. 239 // is NULL, in which case it is a conditional Backtrack.
240 void BranchOrBacktrack(Condition condition, Label* to); 240 void BranchOrBacktrack(Condition condition, Label* to);
241 241
242 void MarkPositionForCodeRelativeFixup() { 242 void MarkPositionForCodeRelativeFixup() {
243 code_relative_fixup_positions_.Add(masm_.pc_offset()); 243 code_relative_fixup_positions_.Add(masm_.pc_offset(), zone());
244 } 244 }
245 245
246 void FixupCodeRelativePositions(); 246 void FixupCodeRelativePositions();
247 247
248 // Call and return internally in the generated code in a way that 248 // Call and return internally in the generated code in a way that
249 // is GC-safe (i.e., doesn't leave absolute code addresses on the stack) 249 // is GC-safe (i.e., doesn't leave absolute code addresses on the stack)
250 inline void SafeCall(Label* to); 250 inline void SafeCall(Label* to);
251 inline void SafeCallTarget(Label* label); 251 inline void SafeCallTarget(Label* label);
252 inline void SafeReturn(); 252 inline void SafeReturn();
253 253
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 Label exit_label_; 295 Label exit_label_;
296 Label check_preempt_label_; 296 Label check_preempt_label_;
297 Label stack_overflow_label_; 297 Label stack_overflow_label_;
298 }; 298 };
299 299
300 #endif // V8_INTERPRETED_REGEXP 300 #endif // V8_INTERPRETED_REGEXP
301 301
302 }} // namespace v8::internal 302 }} // namespace v8::internal
303 303
304 #endif // V8_X64_REGEXP_MACRO_ASSEMBLER_X64_H_ 304 #endif // V8_X64_REGEXP_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | src/x64/regexp-macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698