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

Side by Side Diff: src/objects-inl.h

Issue 174863002: Implement KnownSuccessor method to some control instructions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: add test case 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
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 2065 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 JSValue* js_value = JSValue::cast(this); 2076 JSValue* js_value = JSValue::cast(this);
2077 if (!js_value->value()->IsString()) return false; 2077 if (!js_value->value()->IsString()) return false;
2078 2078
2079 String* str = String::cast(js_value->value()); 2079 String* str = String::cast(js_value->value());
2080 if (index >= static_cast<uint32_t>(str->length())) return false; 2080 if (index >= static_cast<uint32_t>(str->length())) return false;
2081 2081
2082 return true; 2082 return true;
2083 } 2083 }
2084 2084
2085 2085
2086
2087 void Object::VerifyApiCallResultType() { 2086 void Object::VerifyApiCallResultType() {
2088 #if ENABLE_EXTRA_CHECKS 2087 #if ENABLE_EXTRA_CHECKS
2089 if (!(IsSmi() || 2088 if (!(IsSmi() ||
2090 IsString() || 2089 IsString() ||
2091 IsSpecObject() || 2090 IsSpecObject() ||
2092 IsHeapNumber() || 2091 IsHeapNumber() ||
2093 IsUndefined() || 2092 IsUndefined() ||
2094 IsTrue() || 2093 IsTrue() ||
2095 IsFalse() || 2094 IsFalse() ||
2096 IsNull())) { 2095 IsNull())) {
(...skipping 4663 matching lines...) Expand 10 before | Expand all | Expand 10 after
6760 #undef READ_UINT32_FIELD 6759 #undef READ_UINT32_FIELD
6761 #undef WRITE_UINT32_FIELD 6760 #undef WRITE_UINT32_FIELD
6762 #undef READ_SHORT_FIELD 6761 #undef READ_SHORT_FIELD
6763 #undef WRITE_SHORT_FIELD 6762 #undef WRITE_SHORT_FIELD
6764 #undef READ_BYTE_FIELD 6763 #undef READ_BYTE_FIELD
6765 #undef WRITE_BYTE_FIELD 6764 #undef WRITE_BYTE_FIELD
6766 6765
6767 } } // namespace v8::internal 6766 } } // namespace v8::internal
6768 6767
6769 #endif // V8_OBJECTS_INL_H_ 6768 #endif // V8_OBJECTS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698