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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8Binding.h

Issue 2554693003: Migrate WTF::Vector::append() to ::push_back() [part 1 of N] (Closed)
Patch Set: rebase Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Ericsson AB. All rights reserved. 3 * Copyright (C) 2012 Ericsson AB. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 exceptionState.rethrowV8Exception(block.Exception()); 1068 exceptionState.rethrowV8Exception(block.Exception());
1069 return VectorType(); 1069 return VectorType();
1070 } 1070 }
1071 v8::Local<v8::Boolean> doneBoolean; 1071 v8::Local<v8::Boolean> doneBoolean;
1072 if (!done->ToBoolean(context).ToLocal(&doneBoolean)) { 1072 if (!done->ToBoolean(context).ToLocal(&doneBoolean)) {
1073 exceptionState.rethrowV8Exception(block.Exception()); 1073 exceptionState.rethrowV8Exception(block.Exception());
1074 return VectorType(); 1074 return VectorType();
1075 } 1075 }
1076 if (doneBoolean->Value()) 1076 if (doneBoolean->Value())
1077 break; 1077 break;
1078 result.append(NativeValueTraits<ValueType>::nativeValue(isolate, element, 1078 result.push_back(NativeValueTraits<ValueType>::nativeValue(isolate, element,
1079 exceptionState)); 1079 exceptionState));
1080 } 1080 }
1081 return result; 1081 return result;
1082 } 1082 }
1083 1083
1084 // If the current context causes out of memory, JavaScript setting 1084 // If the current context causes out of memory, JavaScript setting
1085 // is disabled and it returns true. 1085 // is disabled and it returns true.
1086 bool handleOutOfMemory(); 1086 bool handleOutOfMemory();
1087 void crashIfIsolateIsDead(v8::Isolate*); 1087 void crashIfIsolateIsDead(v8::Isolate*);
1088 1088
1089 inline bool isUndefinedOrNull(v8::Local<v8::Value> value) { 1089 inline bool isUndefinedOrNull(v8::Local<v8::Value> value) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 // If the argument isn't an object, this will crash. 1167 // If the argument isn't an object, this will crash.
1168 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, 1168 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>,
1169 v8::Isolate*); 1169 v8::Isolate*);
1170 1170
1171 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*, 1171 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*,
1172 const String& stringifiedJSON, 1172 const String& stringifiedJSON,
1173 ExceptionState&); 1173 ExceptionState&);
1174 } // namespace blink 1174 } // namespace blink
1175 1175
1176 #endif // V8Binding_h 1176 #endif // V8Binding_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698