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

Side by Side Diff: src/isolate.cc

Issue 181543002: Eliminate extended mode, and other modes clean-up (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« no previous file with comments | « src/ic.cc ('k') | src/json-parser.h » ('j') | 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 483
484 Handle<Object> recv = frames[i].receiver(); 484 Handle<Object> recv = frames[i].receiver();
485 Handle<JSFunction> fun = frames[i].function(); 485 Handle<JSFunction> fun = frames[i].function();
486 Handle<Code> code = frames[i].code(); 486 Handle<Code> code = frames[i].code();
487 Handle<Smi> offset(Smi::FromInt(frames[i].offset()), this); 487 Handle<Smi> offset(Smi::FromInt(frames[i].offset()), this);
488 // The stack trace API should not expose receivers and function 488 // The stack trace API should not expose receivers and function
489 // objects on frames deeper than the top-most one with a strict 489 // objects on frames deeper than the top-most one with a strict
490 // mode function. The number of sloppy frames is stored as 490 // mode function. The number of sloppy frames is stored as
491 // first element in the result array. 491 // first element in the result array.
492 if (!encountered_strict_function) { 492 if (!encountered_strict_function) {
493 if (!fun->shared()->is_sloppy_mode()) { 493 if (fun->shared()->strict_mode() == STRICT) {
494 encountered_strict_function = true; 494 encountered_strict_function = true;
495 } else { 495 } else {
496 sloppy_frames++; 496 sloppy_frames++;
497 } 497 }
498 } 498 }
499 elements->set(cursor++, *recv); 499 elements->set(cursor++, *recv);
500 elements->set(cursor++, *fun); 500 elements->set(cursor++, *fun);
501 elements->set(cursor++, *code); 501 elements->set(cursor++, *code);
502 elements->set(cursor++, *offset); 502 elements->set(cursor++, *offset);
503 } 503 }
(...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after
2319 2319
2320 #ifdef DEBUG 2320 #ifdef DEBUG
2321 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2321 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2322 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2322 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2323 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2323 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2324 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2324 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2325 #undef ISOLATE_FIELD_OFFSET 2325 #undef ISOLATE_FIELD_OFFSET
2326 #endif 2326 #endif
2327 2327
2328 } } // namespace v8::internal 2328 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/json-parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698