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

Unified Diff: src/runtime.cc

Issue 480283003: Minor LookupIterator cleanups (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« src/objects.h ('K') | « src/objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 32ecf52e879b9421e36c32a06f9da4dea4c45a88..5db5e4d4f7170a03ca9e9dee39fab075ea0b2a44 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -10895,8 +10895,8 @@ RUNTIME_FUNCTION(Runtime_Break) {
}
-static Handle<Object> DebugLookupResultValue(LookupIterator* it,
- bool* has_caught = NULL) {
+static Handle<Object> DebugGetProperty(LookupIterator* it,
+ bool* has_caught = NULL) {
for (; it->IsFound(); it->Next()) {
switch (it->state()) {
case LookupIterator::NOT_FOUND:
@@ -10982,7 +10982,7 @@ RUNTIME_FUNCTION(Runtime_DebugGetPropertyDetails) {
LookupIterator it(obj, name, LookupIterator::CHECK_HIDDEN);
bool has_caught = false;
- Handle<Object> value = DebugLookupResultValue(&it, &has_caught);
+ Handle<Object> value = DebugGetProperty(&it, &has_caught);
if (!it.IsFound()) return isolate->heap()->undefined_value();
Handle<Object> maybe_pair;
@@ -11022,7 +11022,7 @@ RUNTIME_FUNCTION(Runtime_DebugGetProperty) {
CONVERT_ARG_HANDLE_CHECKED(Name, name, 1);
LookupIterator it(obj, name, LookupIterator::CHECK_DERIVED);
- return *DebugLookupResultValue(&it);
+ return *DebugGetProperty(&it);
}
« src/objects.h ('K') | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698