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

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

Issue 148293020: Merge experimental/a64 to bleeding_edge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove ARM from OWNERS Created 6 years, 10 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-hashing.cc ('k') | test/cctest/test-javascript-a64.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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 value = heap->NumberFromInt32(Smi::kMinValue)->ToObjectChecked(); 173 value = heap->NumberFromInt32(Smi::kMinValue)->ToObjectChecked();
174 CHECK(value->IsSmi()); 174 CHECK(value->IsSmi());
175 CHECK(value->IsNumber()); 175 CHECK(value->IsNumber());
176 CHECK_EQ(Smi::kMinValue, Smi::cast(value)->value()); 176 CHECK_EQ(Smi::kMinValue, Smi::cast(value)->value());
177 177
178 value = heap->NumberFromInt32(Smi::kMaxValue)->ToObjectChecked(); 178 value = heap->NumberFromInt32(Smi::kMaxValue)->ToObjectChecked();
179 CHECK(value->IsSmi()); 179 CHECK(value->IsSmi());
180 CHECK(value->IsNumber()); 180 CHECK(value->IsNumber());
181 CHECK_EQ(Smi::kMaxValue, Smi::cast(value)->value()); 181 CHECK_EQ(Smi::kMaxValue, Smi::cast(value)->value());
182 182
183 #ifndef V8_TARGET_ARCH_X64 183 #if !defined(V8_TARGET_ARCH_X64) && !defined(V8_TARGET_ARCH_A64)
184 // TODO(lrn): We need a NumberFromIntptr function in order to test this. 184 // TODO(lrn): We need a NumberFromIntptr function in order to test this.
185 value = heap->NumberFromInt32(Smi::kMinValue - 1)->ToObjectChecked(); 185 value = heap->NumberFromInt32(Smi::kMinValue - 1)->ToObjectChecked();
186 CHECK(value->IsHeapNumber()); 186 CHECK(value->IsHeapNumber());
187 CHECK(value->IsNumber()); 187 CHECK(value->IsNumber());
188 CHECK_EQ(static_cast<double>(Smi::kMinValue - 1), value->Number()); 188 CHECK_EQ(static_cast<double>(Smi::kMinValue - 1), value->Number());
189 #endif 189 #endif
190 190
191 MaybeObject* maybe_value = 191 MaybeObject* maybe_value =
192 heap->NumberFromUint32(static_cast<uint32_t>(Smi::kMaxValue) + 1); 192 heap->NumberFromUint32(static_cast<uint32_t>(Smi::kMaxValue) + 1);
193 value = maybe_value->ToObjectChecked(); 193 value = maybe_value->ToObjectChecked();
(...skipping 3487 matching lines...) Expand 10 before | Expand all | Expand 10 after
3681 code = scope.CloseAndEscape(Handle<Code>(bar->code())); 3681 code = scope.CloseAndEscape(Handle<Code>(bar->code()));
3682 } 3682 }
3683 3683
3684 // Now make sure that a gc should get rid of the function 3684 // Now make sure that a gc should get rid of the function
3685 for (int i = 0; i < 4; i++) { 3685 for (int i = 0; i < 4; i++) {
3686 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask); 3686 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
3687 } 3687 }
3688 3688
3689 ASSERT(code->marked_for_deoptimization()); 3689 ASSERT(code->marked_for_deoptimization());
3690 } 3690 }
OLDNEW
« no previous file with comments | « test/cctest/test-hashing.cc ('k') | test/cctest/test-javascript-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698