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

Side by Side Diff: runtime/vm/object_test.cc

Issue 413723002: - Fix build. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/globals.h" 5 #include "platform/globals.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/bigint_operations.h" 8 #include "vm/bigint_operations.h"
9 #include "vm/class_finalizer.h" 9 #include "vm/class_finalizer.h"
10 #include "vm/dart_api_impl.h" 10 #include "vm/dart_api_impl.h"
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 EXPECT(smi.Equals(smi)); 311 EXPECT(smi.Equals(smi));
312 EXPECT(!smi.Equals(Smi::Handle())); 312 EXPECT(!smi.Equals(Smi::Handle()));
313 313
314 EXPECT(Smi::IsValid(0)); 314 EXPECT(Smi::IsValid(0));
315 EXPECT(Smi::IsValid(-15)); 315 EXPECT(Smi::IsValid(-15));
316 EXPECT(Smi::IsValid(0xFFu)); 316 EXPECT(Smi::IsValid(0xFFu));
317 // Upper two bits must be either 00 or 11. 317 // Upper two bits must be either 00 or 11.
318 #if defined(ARCH_IS_64_BIT) 318 #if defined(ARCH_IS_64_BIT)
319 EXPECT(!Smi::IsValid(kMaxInt64)); 319 EXPECT(!Smi::IsValid(kMaxInt64));
320 EXPECT(Smi::IsValid(0x3FFFFFFFFFFFFFFF)); 320 EXPECT(Smi::IsValid(0x3FFFFFFFFFFFFFFF));
321 EXPECT(Smi::IsValid(-1)); 321 EXPECT(Smi::IsValid(-1));
siva 2014/07/23 16:44:48 Why did you get rid of this test?
322 EXPECT(!Smi::IsValid(0xFFFFFFFFFFFFFFFFu));
323 #else 322 #else
324 EXPECT(!Smi::IsValid(kMaxInt32)); 323 EXPECT(!Smi::IsValid(kMaxInt32));
325 EXPECT(Smi::IsValid(0x3FFFFFFF)); 324 EXPECT(Smi::IsValid(0x3FFFFFFF));
326 EXPECT(Smi::IsValid(-1)); 325 EXPECT(Smi::IsValid(-1));
327 EXPECT(!Smi::IsValid(0xFFFFFFFFu)); 326 EXPECT(!Smi::IsValid(0xFFFFFFFFu));
328 #endif 327 #endif
329 328
330 EXPECT_EQ(5, smi.AsInt64Value()); 329 EXPECT_EQ(5, smi.AsInt64Value());
331 EXPECT_EQ(5.0, smi.AsDoubleValue()); 330 EXPECT_EQ(5.0, smi.AsDoubleValue());
332 331
(...skipping 3867 matching lines...) Expand 10 before | Expand all | Expand 10 after
4200 EXPECT_VALID(h_result); 4199 EXPECT_VALID(h_result);
4201 Integer& result = Integer::Handle(); 4200 Integer& result = Integer::Handle();
4202 result ^= Api::UnwrapHandle(h_result); 4201 result ^= Api::UnwrapHandle(h_result);
4203 String& foo = String::Handle(String::New("foo")); 4202 String& foo = String::Handle(String::New("foo"));
4204 Integer& expected = Integer::Handle(); 4203 Integer& expected = Integer::Handle();
4205 expected ^= foo.HashCode(); 4204 expected ^= foo.HashCode();
4206 EXPECT(result.IsIdenticalTo(expected)); 4205 EXPECT(result.IsIdenticalTo(expected));
4207 } 4206 }
4208 4207
4209 } // namespace dart 4208 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698