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

Side by Side Diff: Source/bindings/core/v8/RejectedPromises.cpp

Issue 1060193006: Oilpan: fix build after r194136. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "bindings/core/v8/RejectedPromises.h" 6 #include "bindings/core/v8/RejectedPromises.h"
7 7
8 #include "bindings/core/v8/ScriptState.h" 8 #include "bindings/core/v8/ScriptState.h"
9 #include "bindings/core/v8/ScriptValue.h" 9 #include "bindings/core/v8/ScriptValue.h"
10 #include "bindings/core/v8/V8Binding.h" 10 #include "bindings/core/v8/V8Binding.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 RejectedPromises::RejectedPromises() 58 RejectedPromises::RejectedPromises()
59 { 59 {
60 } 60 }
61 61
62 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(RejectedPromises); 62 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(RejectedPromises);
63 63
64 DEFINE_TRACE(RejectedPromises) 64 DEFINE_TRACE(RejectedPromises)
65 { 65 {
66 visitor->trace(m_queue); 66 visitor->trace(m_queue);
67 visitor->trace(m_reportedAsErrors);
67 } 68 }
68 69
69 void RejectedPromises::rejectedWithNoHandler(ScriptState* scriptState, v8::Promi seRejectMessage data, const String& errorMessage, const String& resourceName, in t scriptId, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallS tack> callStack) 70 void RejectedPromises::rejectedWithNoHandler(ScriptState* scriptState, v8::Promi seRejectMessage data, const String& errorMessage, const String& resourceName, in t scriptId, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallS tack> callStack)
70 { 71 {
71 v8::Handle<v8::Promise> promise = data.GetPromise(); 72 v8::Handle<v8::Promise> promise = data.GetPromise();
72 OwnPtrWillBeRawPtr<Message> message = Message::create(ScriptValue(scriptStat e, promise), ScriptValue(scriptState, data.GetValue()), errorMessage, resourceNa me, scriptId, lineNumber, columnNumber, callStack); 73 OwnPtrWillBeRawPtr<Message> message = Message::create(ScriptValue(scriptStat e, promise), ScriptValue(scriptState, data.GetValue()), errorMessage, resourceNa me, scriptId, lineNumber, columnNumber, callStack);
73 74
74 m_queue.append(message.release()); 75 m_queue.append(message.release());
75 } 76 }
76 77
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 message->m_consoleMessageId = consoleMessage->assignMessageId(); 163 message->m_consoleMessageId = consoleMessage->assignMessageId();
163 executionContext->addConsoleMessage(consoleMessage.release()); 164 executionContext->addConsoleMessage(consoleMessage.release());
164 165
165 m_reportedAsErrors.append(message.release()); 166 m_reportedAsErrors.append(message.release());
166 if (m_reportedAsErrors.size() > maxReportedHandlersPendingResolution) 167 if (m_reportedAsErrors.size() > maxReportedHandlersPendingResolution)
167 m_reportedAsErrors.removeFirst(); 168 m_reportedAsErrors.removeFirst();
168 } 169 }
169 } 170 }
170 171
171 } // namespace blink 172 } // namespace blink
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