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

Side by Side Diff: include/v8.h

Issue 24360017: Expose SameValue equality comparison algorithm (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/objects.cc » ('J')
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 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 1472
1473 bool BooleanValue() const; 1473 bool BooleanValue() const;
1474 double NumberValue() const; 1474 double NumberValue() const;
1475 int64_t IntegerValue() const; 1475 int64_t IntegerValue() const;
1476 uint32_t Uint32Value() const; 1476 uint32_t Uint32Value() const;
1477 int32_t Int32Value() const; 1477 int32_t Int32Value() const;
1478 1478
1479 /** JS == */ 1479 /** JS == */
1480 bool Equals(Handle<Value> that) const; 1480 bool Equals(Handle<Value> that) const;
1481 bool StrictEquals(Handle<Value> that) const; 1481 bool StrictEquals(Handle<Value> that) const;
1482 bool SameValue(Handle<Value> that) const;
1482 1483
1483 template <class T> V8_INLINE static Value* Cast(T* value); 1484 template <class T> V8_INLINE static Value* Cast(T* value);
1484 1485
1485 private: 1486 private:
1486 V8_INLINE bool QuickIsUndefined() const; 1487 V8_INLINE bool QuickIsUndefined() const;
1487 V8_INLINE bool QuickIsNull() const; 1488 V8_INLINE bool QuickIsNull() const;
1488 V8_INLINE bool QuickIsString() const; 1489 V8_INLINE bool QuickIsString() const;
1489 bool FullIsUndefined() const; 1490 bool FullIsUndefined() const;
1490 bool FullIsNull() const; 1491 bool FullIsNull() const;
1491 bool FullIsString() const; 1492 bool FullIsString() const;
(...skipping 4985 matching lines...) Expand 10 before | Expand all | Expand 10 after
6477 */ 6478 */
6478 6479
6479 6480
6480 } // namespace v8 6481 } // namespace v8
6481 6482
6482 6483
6483 #undef TYPE_CHECK 6484 #undef TYPE_CHECK
6484 6485
6485 6486
6486 #endif // V8_H_ 6487 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698