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

Side by Side Diff: test/cctest/test-utils.cc

Issue 6794050: Revert "[Arguments] Merge (7442,7496] from bleeding_edge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Created 9 years, 8 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-regexp.cc ('k') | test/mjsunit/compiler/global-accessors.js » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 for (int i = 0; i < length; i++) { 96 for (int i = 0; i < length; i++) {
97 CHECK_EQ(from[i], to[i]); 97 CHECK_EQ(from[i], to[i]);
98 } 98 }
99 CHECK_EQ(0xFF, to[-1]); 99 CHECK_EQ(0xFF, to[-1]);
100 CHECK_EQ(0xFF, to[length]); 100 CHECK_EQ(0xFF, to[length]);
101 } 101 }
102 102
103 103
104 104
105 TEST(MemCopy) { 105 TEST(MemCopy) {
106 v8::V8::Initialize();
107 OS::Setup(); 106 OS::Setup();
108 const int N = OS::kMinComplexMemCopy + 128; 107 const int N = OS::kMinComplexMemCopy + 128;
109 Vector<byte> buffer1 = Vector<byte>::New(N); 108 Vector<byte> buffer1 = Vector<byte>::New(N);
110 Vector<byte> buffer2 = Vector<byte>::New(N); 109 Vector<byte> buffer2 = Vector<byte>::New(N);
111 110
112 for (int i = 0; i < N; i++) { 111 for (int i = 0; i < N; i++) {
113 buffer1[i] = static_cast<byte>(i & 0x7F); 112 buffer1[i] = static_cast<byte>(i & 0x7F);
114 } 113 }
115 114
116 // Same alignment. 115 // Same alignment.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 int offset = 0; 186 int offset = 0;
188 for (int loop = 0; loop < kLoops; loop++) { 187 for (int loop = 0; loop < kLoops; loop++) {
189 int seq_length = loop % kMaxSequenceSize; 188 int seq_length = loop % kMaxSequenceSize;
190 for (int j = 0; j < seq_length; j++) { 189 for (int j = 0; j < seq_length; j++) {
191 CHECK_EQ(j, result[offset]); 190 CHECK_EQ(j, result[offset]);
192 offset++; 191 offset++;
193 } 192 }
194 } 193 }
195 result.Dispose(); 194 result.Dispose();
196 } 195 }
OLDNEW
« no previous file with comments | « test/cctest/test-regexp.cc ('k') | test/mjsunit/compiler/global-accessors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698