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

Side by Side Diff: src/code-stubs.h

Issue 16017008: Fix presubmit errors (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 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 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 Handle<Code> GenerateCode(); 1200 Handle<Code> GenerateCode();
1201 1201
1202 // extra ic state = nil_value | equality_kind | type_n-1 | ... | type_0 1202 // extra ic state = nil_value | equality_kind | type_n-1 | ... | type_0
1203 virtual Code::ExtraICState GetExtraICState() { 1203 virtual Code::ExtraICState GetExtraICState() {
1204 return NilValueField::encode(nil_value_) | 1204 return NilValueField::encode(nil_value_) |
1205 EqualityKindField::encode(equality_kind_) | 1205 EqualityKindField::encode(equality_kind_) |
1206 types_.ToIntegral(); 1206 types_.ToIntegral();
1207 } 1207 }
1208 static byte ExtractTypesFromExtraICState( 1208 static byte ExtractTypesFromExtraICState(
1209 Code::ExtraICState state) { 1209 Code::ExtraICState state) {
1210 return state & ((1<<NUMBER_OF_TYPES)-1); 1210 return state & ((1 << NUMBER_OF_TYPES) - 1);
1211 } 1211 }
1212 1212
1213 void Record(Handle<Object> object); 1213 void Record(Handle<Object> object);
1214 1214
1215 bool IsMonomorphic() const { return types_.Contains(MONOMORPHIC_MAP); } 1215 bool IsMonomorphic() const { return types_.Contains(MONOMORPHIC_MAP); }
1216 EqualityKind GetKind() const { return equality_kind_; } 1216 EqualityKind GetKind() const { return equality_kind_; }
1217 NilValue GetNilValue() const { return nil_value_; } 1217 NilValue GetNilValue() const { return nil_value_; }
1218 Types GetTypes() const { return types_; } 1218 Types GetTypes() const { return types_; }
1219 void ClearTypes() { types_.RemoveAll(); } 1219 void ClearTypes() { types_.RemoveAll(); }
1220 void SetKind(EqualityKind kind) { equality_kind_ = kind; } 1220 void SetKind(EqualityKind kind) { equality_kind_ = kind; }
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
2164 2164
2165 // The current function entry hook. 2165 // The current function entry hook.
2166 static FunctionEntryHook entry_hook_; 2166 static FunctionEntryHook entry_hook_;
2167 2167
2168 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); 2168 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub);
2169 }; 2169 };
2170 2170
2171 } } // namespace v8::internal 2171 } } // namespace v8::internal
2172 2172
2173 #endif // V8_CODE_STUBS_H_ 2173 #endif // V8_CODE_STUBS_H_
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