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

Side by Side Diff: test/cctest/test-liveedit.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 | « test/cctest/test-dataflow.cc ('k') | test/cctest/test-regexp.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 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 }; 74 };
75 75
76 76
77 class ListDiffOutputWriter : public Comparator::Output { 77 class ListDiffOutputWriter : public Comparator::Output {
78 public: 78 public:
79 explicit ListDiffOutputWriter(DiffChunkStruct** next_chunk_pointer) 79 explicit ListDiffOutputWriter(DiffChunkStruct** next_chunk_pointer)
80 : next_chunk_pointer_(next_chunk_pointer) { 80 : next_chunk_pointer_(next_chunk_pointer) {
81 (*next_chunk_pointer_) = NULL; 81 (*next_chunk_pointer_) = NULL;
82 } 82 }
83 void AddChunk(int pos1, int pos2, int len1, int len2) { 83 void AddChunk(int pos1, int pos2, int len1, int len2) {
84 current_chunk_ = new DiffChunkStruct(pos1, pos2, len1, len2); 84 current_chunk_ =
85 new(Isolate::Current()->zone()) DiffChunkStruct(pos1, pos2, len1, len2);
85 (*next_chunk_pointer_) = current_chunk_; 86 (*next_chunk_pointer_) = current_chunk_;
86 next_chunk_pointer_ = &current_chunk_->next; 87 next_chunk_pointer_ = &current_chunk_->next;
87 } 88 }
88 private: 89 private:
89 DiffChunkStruct** next_chunk_pointer_; 90 DiffChunkStruct** next_chunk_pointer_;
90 DiffChunkStruct* current_chunk_; 91 DiffChunkStruct* current_chunk_;
91 }; 92 };
92 93
93 94
94 void CompareStringsOneWay(const char* s1, const char* s2, 95 void CompareStringsOneWay(const char* s1, const char* s2,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 CompareStrings("cat", "ct", 1); 171 CompareStrings("cat", "ct", 1);
171 CompareStrings("cat", "cat", 0); 172 CompareStrings("cat", "cat", 0);
172 CompareStrings("", "", 0); 173 CompareStrings("", "", 0);
173 CompareStrings("cat", "", 3); 174 CompareStrings("cat", "", 3);
174 CompareStrings("a cat", "a capybara", 7); 175 CompareStrings("a cat", "a capybara", 7);
175 CompareStrings("abbabababababaaabbabababababbabbbbbbbababa", 176 CompareStrings("abbabababababaaabbabababababbabbbbbbbababa",
176 "bbbbabababbbabababbbabababababbabbababa"); 177 "bbbbabababbbabababbbabababababbabbababa");
177 } 178 }
178 179
179 #endif // ENABLE_DEBUGGER_SUPPORT 180 #endif // ENABLE_DEBUGGER_SUPPORT
OLDNEW
« no previous file with comments | « test/cctest/test-dataflow.cc ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698