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

Side by Side Diff: src/runtime.h

Issue 3473024: [Isolates] More handle improvements: (Closed)
Patch Set: Created 10 years, 2 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
« no previous file with comments | « src/ic.cc ('k') | src/runtime.cc » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 Handle<String> pat, 506 Handle<String> pat,
507 int index); 507 int index);
508 508
509 static bool IsUpperCaseChar(RuntimeState* runtime_state, uint16_t ch); 509 static bool IsUpperCaseChar(RuntimeState* runtime_state, uint16_t ch);
510 510
511 // TODO(1240886): The following three methods are *not* handle safe, 511 // TODO(1240886): The following three methods are *not* handle safe,
512 // but accept handle arguments. This seems fragile. 512 // but accept handle arguments. This seems fragile.
513 513
514 // Support getting the characters in a string using [] notation as 514 // Support getting the characters in a string using [] notation as
515 // in Firefox/SpiderMonkey, Safari and Opera. 515 // in Firefox/SpiderMonkey, Safari and Opera.
516 static Object* GetElementOrCharAt(Heap* heap, 516 static Object* GetElementOrCharAt(Isolate* isolate,
517 Handle<Object> object, 517 Handle<Object> object,
518 uint32_t index); 518 uint32_t index);
519 static Object* GetElement(Handle<Object> object, uint32_t index); 519 static Object* GetElement(Handle<Object> object, uint32_t index);
520 520
521 static Object* SetObjectProperty(Heap* heap, 521 static Object* SetObjectProperty(Isolate* isolate,
522 Handle<Object> object, 522 Handle<Object> object,
523 Handle<Object> key, 523 Handle<Object> key,
524 Handle<Object> value, 524 Handle<Object> value,
525 PropertyAttributes attr); 525 PropertyAttributes attr);
526 526
527 static Object* ForceSetObjectProperty(Handle<JSObject> object, 527 static Object* ForceSetObjectProperty(Isolate* isolate,
528 Handle<JSObject> object,
528 Handle<Object> key, 529 Handle<Object> key,
529 Handle<Object> value, 530 Handle<Object> value,
530 PropertyAttributes attr); 531 PropertyAttributes attr);
531 532
532 static Object* ForceDeleteObjectProperty(Heap* heap, 533 static Object* ForceDeleteObjectProperty(Isolate* isolate,
533 Handle<JSObject> object, 534 Handle<JSObject> object,
534 Handle<Object> key); 535 Handle<Object> key);
535 536
536 static Object* GetObjectProperty(Heap* heap, 537 static Object* GetObjectProperty(Isolate* isolate,
537 Handle<Object> object, 538 Handle<Object> object,
538 Handle<Object> key); 539 Handle<Object> key);
539 540
540 // This function is used in FunctionNameUsing* tests. 541 // This function is used in FunctionNameUsing* tests.
541 static Object* FindSharedFunctionInfoInScript(Heap* heap, 542 static Object* FindSharedFunctionInfoInScript(Isolate* isolate,
542 Handle<Script> script, 543 Handle<Script> script,
543 int position); 544 int position);
544 545
545 // Helper functions used stubs. 546 // Helper functions used stubs.
546 static void PerformGC(Object* result); 547 static void PerformGC(Object* result);
547 }; 548 };
548 549
549 } } // namespace v8::internal 550 } } // namespace v8::internal
550 551
551 #endif // V8_RUNTIME_H_ 552 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698